while (<DATA>) { print if m/bar/ && !m/foo/; } __DATA__ some stuff then foo then bar then more stuff oo then bar then more stuff some stuff then foo then bar then more stuff some stuff then bar then more stuff
In reply to Re: Negative Lookahead Assertion Strangness
by TedPride
in thread Negative Lookahead Assertion Strangness
by sas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |