Not within a character class. If you're careful about how you construct
it, you never have to escape anything in a class. Unless I forgot about
something, or course. :-)
--Ben Doom
Taco Fleur wrote:
> Don't you have to escape the period? like so \.
>
> Taco Fleur
> Blog <http://www.tacofleur.com/index/blog/>
> http://www.tacofleur.com/index/blog/
> Methodology http://www.tacofleur.com/index/methodology/
>
> Tell me and I will forget
> Show me and I will remember
> Teach me and I will learn
>
> -----Original Message-----
> From: Pascal Peters [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 24 February 2004 8:17 PM
> To: CF-Talk
> Subject: RE: REFind
>
> REFind("[^0-9]",form.PropertyDataPrice)
>
> If you want to allow other caracters like . and , add them in the class:
> REFind("[^0-9.,]",form.PropertyDataPrice)
>
> > -----Original Message-----
> > From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> > Sent: dinsdag 24 februari 2004 10:50
> > To: CF-Talk
> > Subject: REFind
> >
> > Hi guys,
> >
> > I'm trying to make sure that my field has ONLY numeric
> > characters otherwise show an error. I'm using the REFind but
> > it doesn't pick up characters like " $ £ etc.
> >
> > <cfelseif REFind("[[:num:]]",form.PropertyDataPrice)><cfset
> > MessageAlert = MessageAlert & "<font color='red'>Price</font>
> > must only be numbers baby.<br>"></cfif>
> >
> >
> > Any ideas?
> >
> > Cheers,
> >
> > Stu
> >
> >
> >
> >
> _____
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- REFind Stuart Kidd
- REFind Stuart Kidd
- RE: REFind Pascal Peters
- RE: REFind Taco Fleur
- RE: REFind Ben Doom
- RE: REFind Taco Fleur
- Re: REFind Ben Doom
- RE: REFind Stuart Kidd
- RE: REFind Pascal Peters