Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Regexp substitution using variables

by MikeTaylor (Acolyte)
on Nov 26, 2020 at 10:34 UTC ( [id://11124256]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Regexp substitution using variables
in thread Regexp substitution using variables

Sorry, I think I was using the term "back-reference" incorrectly. I didn't mean referring back within the pattern to something earlier in the pattern, but referring in the substitution string to a captured sub-expression of the pattern. Something like s/(foo|bar)/He said "$1"/.
  • Comment on Re^5: Regexp substitution using variables

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-18 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found