I'd like a regex that matches 'CD' but not 'ABCD' in any part of the regex.

From: "Bruno Wolff III" <[EMAIL PROTECTED]>

Something like:
(^.?CD)|([^B]CD)|([^A]BCD)

Thanks to Bruno, and to Dawid who replied offline. The above does the job nicely.

Any plans for a Perl Compatible Regular Expression operator? http://www.pcre.org/
Or are two regex operators enough?

Julian




---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to