Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^5: Help combining two regex's into one

by Kenosis (Priest)
on Jan 16, 2013 at 04:38 UTC ( #1013496=note: print w/replies, xml ) Need Help??

in reply to Re^4: Help combining two regex's into one
in thread Help combining two regex's into one

...everything left of the \K is not included in $& and so cannot be zapped by substitution: it is "kept safe" from substitution.

Well said...

Given this, I might read perlre as "Keep the stuff left of the \K, i.e., don't include it in $&". Put another way, if the stuff left of \K were included in $&, it wouldn't be kept--and I believe this is the essence of your quote above.

Got a great laugh from your Update! Thanks for that...

  • Comment on Re^5: Help combining two regex's into one

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013496]
[Corion]: marto: Ow! You got hit by the storm that is bringing warm weather to me ...
[1nickt]: marto Good to hear that was the worst of it for you...
[marto]: 1nickt the worst I'm aware of at the moment :P
LanX .♩..♬ ... Another one bites the Sahara dust ...
marto wonders what fresh hell the firefox update has brought, apart from maxing out CPUs
1nickt was looking into Firefox Extended Support releases yesterday. You don't have to go with the updates!
[erix]: wonderfully red sun here
[LanX]: FF has become a source of instability :(
[1nickt]: erix not so wonderful for the lungs :-(
[erix]: the stuff is pretty high up as I understand it; I have not felt any effect on lungs/breathing

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-10-17 12:29 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (230 votes). Check out past polls.