No problem. Didn't take it so. Always appreciate the help. -----Original Message----- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 3:10 PM To: CF-Talk Subject: RE: RegExpression Question
Ahh okay, that explains it... in reviewing my previous message -- I didn't intend it to sound as critical as it appeared to me... > Isaac, > Thanks for the link. This is my first attempted usage of RegEx > Andy > -----Original Message----- > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 11:31 AM > To: CF-Talk > Subject: Re: RegExpression Question >> I want to find any of the following: >> "Andy" >> (Andy) >> 'Andy' >> in a string, but not find >> "andy was here (not) >> I know the following will find each of the three options if I do it 3 >> times. >> Can I find all 1 one statement without finding ["andy was here (not] ? >> REFind("[]'*'[]", "Find this 'here'") >> REFind("[](*)[]", "Find this (here)") >> REFind("[]""*""[]", "Find this ""here""") > You might want to try [EMAIL PROTECTED] > although -- the expressions in this example look all wrong... you're not > actually using * like that in your expression are you? That's a special > character in regex meaning "zero or more instances" of the previous > character or subexpression. And [] means "match any of the 0 characters in > these brackets" or in other words "do nothing". and the () are special > characters indicateing a sub-expression if they haven't been escaped with > \ > . So -- if anything, I would expect these expressions would match items > like or one or more single or double quotes with nothing in them. The > middle > expression "[](*)[]" shouldn't match anything at all if it doesn't error > out, because it says "Find nothing, followed by a subexpression including > zero or more of nothing, followed by nothing". > S. Isaac Dealey > Certified Advanced ColdFusion 5 Developer > www.turnkey.to > 954-776-0046 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm