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