Keep It Simple, Stupid | |
PerlMonks |
Re: Find all strings containing "a" characters, that are not followed by "b" characters.by bart (Canon) |
on Dec 12, 2012 at 17:59 UTC ( [id://1008540]=note: print w/replies, xml ) | Need Help?? |
Try
with negative lookahead. And yes, your regexp looks rather OK, except I would drop a few \b anchors: or combined: Will that do?
In Section
Seekers of Perl Wisdom
|
|