You're right. It doesn't work; I did not test it.
try listcontains() or findnocase()

On Fri, 20 Sep 2002, S. Isaac Dealey wrote:

> I thought there was something squirrelly about that expression... I'm
> probably still learning regex myself... It's one of those things that really
> seems to take a while to grok.
>
>
> S. Isaac Dealey
> Certified Advanced ColdFusion 5 Developer
>
> www.turnkey.to
> 954-776-0046
>
> > This doesn't work in Perl or in CF5.
>
> > The regex
> > [^(this|that)\s]
> > is equivalent to
> > [^()|sihta\s]
>
> > [(this|that)\s] and [()|sihta\s]
> > will match'hit' 'hat' and '(sh|t)' just as it matches 'this' and 'that'.
>
> > Remember, the [] grouping structure forms a class.  What're inside are
> > treated as individual characters, not words/groups/etc.
>
>
> >   --Ben Doom
> >     Programmer & General Lackey
> >     Moonbow Software
>
> > : -----Original Message-----
> > : From: Alex [mailto:[EMAIL PROTECTED]]
> > : Sent: Friday, September 20, 2002 1:47 PM
> > : To: CF-Talk
> > : Subject: Re: regex help
> > :
> > :
> > : m/[^(this|that|\s)]/ig
> > :
> > : Anything other than --> this that spaces
> > :
> > :
> > : On Fri, 20 Sep 2002, Brook wrote:
> > :
> > : > How do you write a regular expression which checks a string for any
> > : > characters/words other than a specified few and returns true if
> > : there are
> > : > ANY other characters in the string.
>
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to