Sounds like a job for the alternation operator (|). \(\)|\[\]|"
http://www.regular-expressions.info/alternation.html Patrick On 11/22/06, Steve Brownlee <[EMAIL PROTECTED]> wrote: > 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:261558 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

