You do.
the carrot ^ acts as a negative      /[^A-Za-z]/

On Fri, 18 Jan 2002, Pascal Peters wrote:

> You don't
> 
> -----Original Message-----
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 18 januari 2002 12:19
> To: CF-Talk
> Subject: RE: A few quick regular expression questions
> 
> 
> James and Joel.
> 
> Thanks for your replies.
> 
> Out of curiosity how would you do a regex to find everything but a
> particular string?
> 
> 
> 
> 
> Kola Oyedeji
> Web Developer
> ekeda
> www.ekeda.co.uk
> 
> 
> > -----Original Message-----
> > From: James Ang [mailto:[EMAIL PROTECTED]]
> > Sent: 17 January 2002 22:00
> > To: CF-Talk
> > Subject: RE: A few quick regular expression questions
> >
> >
> > 1. Yes. [aaa] is the same as [a]
> >
> > 2. Are you sure? I just tested it within CF Studio 4.5.2, and it works
> > as intended. I am not sure if this list's softare or Outlook
> > messed up,
> > but your test string has a white space in it.
> >
> > 3. '^cat' means the first 3 characters in the test string
> > must be 'cat'.
> > There is no concept of not-this-string in RegExp. There is the concept
> > of not-this-set-of-characters. :)
> >
> > James.
> >
> > -----Original Message-----
> > From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 17, 2002 1:32 PM
> > To: CF-Talk
> > Subject: A few quick regular expression questions
> >
> >
> > Hi just playing around with regular expressions 3 hopefully quick
> > questions:
> >
> > 1. are the reg expressions [aaaa] and [aaa] the same as [a]
> > (i think so
> > just
> > need someone to confirm this for me)
> >
> > 2. Why does the regex \\{2,} only return 2 matches out of \\ \\\\ this
> > should match 3 times as the expression occurs twice 3 times?
> >
> > 3. what does ^cat do? shouldn't it match everything except
> > for 'cat'? It
> > matches nothing (when tested on a chunk of text).
> >
> > Thanks in advance
> >
> > Kola
> >
> > 
> 
> 
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to