laziness, impatience, and hubris | |
PerlMonks |
positive regex for inverted matchby kgimpel (Acolyte) |
on Feb 26, 2004 at 06:08 UTC ( [id://331916]=perlquestion: print w/replies, xml ) | Need Help?? |
kgimpel has asked for the wisdom of the Perl Monks concerning the following question:
I am passing a positive regex as a string argument to another function, and I'd only like to match on lines that don't contain "bar." IE:
INPUT looks like this:
MATCHES should be:
So, I effectively want to do this
I've tried Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|