Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Is there a way to allow consecutive zero-length matches without using pos()?by ambrus (Abbot) |
on Nov 03, 2017 at 16:24 UTC ( [id://1202710]=note: print w/replies, xml ) | Need Help?? |
For an example, please see my old node The story of a strange line of code: pos($_) = pos($_); where I deliberately want to do that. It happens because to make the code more readable, I'm not matching one big regex with a lot of alternation, but multiple regexes one after another, and more than one of those can match the empty string at the same position.
In Section
Seekers of Perl Wisdom
|
|