good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think does what you want. That technique will get awkward quickly as more excluded combinations are added. Matching a longer string will nearly always succeed unless you anchor the match to some expected position or embed it in a larger expression. You may want to consider negative matching, for detecting strings which contain no example of 'ah' or 'bh'. After Compline, In reply to Re: RegEx: How to negate more than one character?
by Zaxo
|
|