Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: perl regex referencing

by Prof Vince (Friar)
on Sep 18, 2007 at 08:22 UTC ( #639579=note: print w/ replies, xml ) Need Help??


in reply to perl regex referencing

It's not a problem to use \1 and friends in the LHS of the substitution because it doesn't behave like a quoted string : the <backslash-digit> token has a well defined meaning there. Moreover, $1 can already be a capture in a previous successful regexp, so it shouldn't be reset before the end of the matching part of the substitution.


Comment on Re: perl regex referencing
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-29 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls