in reply to positive regex for inverted match
while (<DATA>) { chomp; print "$_ has no bar\n" if /^([^b]|b[^a]|ba[^r])+$/; } __DATA__ bar foo "bar" blah baz "bar" blah "test" blah "test2"
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: positive regex for inverted match (classic)
by tye (Sage) on Feb 26, 2004 at 07:55 UTC |