http://qs321.pair.com?node_id=704344


in reply to Re: positive look behind regexp mystery (\K assertion)
in thread positive look behind regexp mystery

This is a great case for the \K assertion.

I have never heard of \K and can't find it in perlre. Is this a very new feature?

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: positive look behind regexp mystery (\K assertion)
by lidden (Curate) on Aug 14, 2008 at 14:31 UTC
    It was added in 5.10.0.
Re^3: positive look behind regexp mystery (\K assertion)
by massa (Hermit) on Aug 14, 2008 at 14:42 UTC
    The doc you linked to (perlre) has tons of references to \K. :-) You, like me, must be still at perl5.8, and we don't have it in our docs. But if you are in 5.10, then read again :-)
    []s, HTH, Massa (κς,πμ,πλ)
      You, like me, must be still at perl5.8

      Correct - the project I'm working on, requires compatibility to Perl 5.8.7, so I did not check the 5.10 docs. Thanks for pointing this out.

      -- 
      Ronald Fischer <ynnor@mm.st>