Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Subroutines in a regex?

by kilinrax (Deacon)
on Apr 04, 2001 at 19:06 UTC ( #69691=note: print w/replies, xml ) Need Help??


in reply to Subroutines in a regex?

This is what the 'e' option is designed for:
s/SUM(\d*)/sum($1)/ge

Originally posted as a Categorized Answer.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-07-05 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?