Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: positive look behind regexp mystery (\K assertion)

by rovf (Priest)
on Aug 14, 2008 at 13:28 UTC ( #704344=note: print w/replies, xml ) Need Help??


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>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://704344]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-05-16 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (63 votes). Check out past polls.

    Notices?