in reply to Why is variable length lookahead implemented while lookbehind is not?

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.
  • Comment on Re: Why is variable length lookahead implemented while lookbehind is not?