There's more than one way to do things | |
PerlMonks |
Re: Negative Lookahead Assertion Problemby Enlil (Parson) |
on Jul 18, 2005 at 23:40 UTC ( [id://475924]=note: print w/replies, xml ) | Need Help?? |
Since your question as to why it doesn't work has been answered. (Basically it will backtrack till it does, and by moving a character back satisfies the regex.)
This should work:/\w+::(?>\w+)(?!\s*\()/
Have a look at perlre where it reads about (?>pattern) -Enlil
In Section
Seekers of Perl Wisdom
|
|