Perl Monk, Perl Meditation | |
PerlMonks |
Re: Why is variable length lookahead implemented while lookbehind is not?by ikegami (Patriarch) |
on Sep 07, 2011 at 19:46 UTC ( [id://924651]=note: print w/replies, xml ) | Need Help?? |
To save from writing a new regex engine to matches from right to left to use for lookbehinds, the existing engine simply starts matching the subpattern $match_length positions before the current one.
In Section
Seekers of Perl Wisdom
|
|