Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Answer: Subroutines in a regex?

by busunsl (Vicar)
on Apr 04, 2001 at 19:06 UTC ( #69689=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > Subroutines in a regex? - Answer contributed by busunsl

use
s/SUM(\d*)/sum($1)/eg
this will execute the subroutine.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Corion]: LanX: No, Co-Rion appears as Monkey God :-)
[Corion]: Mr. Muskrat: Yeah, that message is automatic when the "normal" reparenting is done, but I think some rows that make up the node were not added to the DB properly

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2017-01-19 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.