(\[\]|\(\)|")
 

......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/


-----Original Message-----
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 22, 2006 3:40 PM
To: CF-Talk
Subject: RegEx Brain Twister

Usually have a good handle on regular expressions, but this one's got me
boggled.  What I need to capture is if one of the following three
literal groups is in a string 1. () 2. [] 3. "

Strangest thing, though.  With this pattern
        (\(\))(\[\])"

I matches the entire string ()[]" and puts it into 3 groups I can
reference (), [], and ".  I just can't figure out how to, basically,
convert that from an AND to an OR pattern.  Putting square brackets
around the entire pattern simply negates the grouping and it starts
matching single characters again.

Dang meta-characters...


-----------------------------------
Steve Brownlee
http://www.fusioncube.net/




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261508
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to