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 > > ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc 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

