Perl: the Markov chain saw | |
PerlMonks |
Re^3: Seeking clarification on possible bug in regex using \G and /gcby choroba (Cardinal) |
on Mar 14, 2018 at 23:52 UTC ( [id://1210925]=note: print w/replies, xml ) | Need Help?? |
> Should instead print Why? Using perl -Mre=debug will show you your mistake:
The length=1 request comes from the previously mentioned Repeated Patterns Matching a Zero-length Substring: The higher-level loops preserve an additional state between iterations: whether the last match was zero-length. To break the loop, the following match after a zero-length match is prohibited to have a length of zero.
In Section
Seekers of Perl Wisdom
|
|