good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: RegEx: How to negate more than one character?by jettero (Monsignor) |
on Mar 25, 2007 at 23:34 UTC ( [id://606501]=note: print w/replies, xml ) | Need Help?? |
You can proably use a negatively asserted look ahead: $str =~ m/$pattern(?!ab|cd)$morepattern/;. It is a zero-width pattern, but it might do what you want. It's about half-way through perlre. -Paul
In Section
Seekers of Perl Wisdom
|
|