We don't bite newbies here... much | |
PerlMonks |
RegEx: How to negate more than one character?by lokiloki (Beadle) |
on Mar 25, 2007 at 22:50 UTC ( [id://606495]=perlquestion: print w/replies, xml ) | Need Help?? |
lokiloki has asked for the wisdom of the Perl Monks concerning the following question:
The following presumably means match anything that does not contain either "a" or "b": [^ab]+ How can I write code that means match anything that does not contain, for instance, "ah" or "bh"? Would this work: [^(ah|bh)]+ Or this: (^(ah|bh))+
Back to
Seekers of Perl Wisdom
|
|