in reply to Re^2: How to capture backwards using regex?
in thread How to capture backwards using regex?

Look behind used to only work with fixed length patterns. IIRC.

That's most likely also related to the "experimental" status of my code.

> But surprisingly, Corion's solution works flawlessly

Doesn't surprise me that's a very old feature, could be even Perl4.

The idea of Pos and related stuff is very sed/awk-ish, and text processing was one of the main objectives of Perl4.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^3: How to capture backwards using regex?