Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Well it took me a while to understand whats going on in your code...
Please note that the while-loop is redundant (and confusing =)
by placing an _empty_ negative lookahead you are forcing your regex to reject all matches and to backtrack through the whole string. But the embedded perlcode (which is an experimental feature IIRC) prints the temporary match before the next attempt is started.
editas a side note, the same effect can be achieved with "conventional" means (i.e. manipulation of pos)
In reply to Re^4: How does one get all possible matches from regex?
by LanX
|
|