P is for Practical | |
PerlMonks |
Re: A Regex simple Questionby johngg (Canon) |
on Sep 06, 2007 at 15:55 UTC ( [id://637466]=note: print w/replies, xml ) | Need Help?? |
A negative look-ahead is fine, just move the .* into the assertion.
Cheers, JohnGG Update: If you want "a00000000ab" to match then you could change the look-ahead to ensure there is at least one character after the "ab".
which produces
In Section
Seekers of Perl Wisdom
|
|