Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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

by LanX (Chancellor)
on Jan 16, 2013 at 03:11 UTC ( #1013486=note: print w/ replies, xml ) Need Help??

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

Just a matter of perspective: the left part which is kept unchanged is the one ignored from substitution, because the right part is kept in '$&'.

So both parts are kept, just in different aspects.

Almost as confusing as using single line and multi line modifiers at the same time...

Comment on Re^4: 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://1013486]
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: (12)
As of 2016-02-12 19:11 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (412 votes), past polls