Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Answer: Subroutines in a regex?

( #70035=categorized answer: print w/ replies, xml ) Need Help??

Q&A > regular expressions > Subroutines in a regex? contributed by alfie

busunsl is right, but I'd like to add another feature and DWIM[1] to your code:
For I think you want to have the SUM characters stripped off, don't you?

[1] Do What I Mean

Comment on Answer: Subroutines in a regex?
Download Code
Replies are listed 'Best First'.
Re: Answer: Subroutines in a regex?
by busunsl (Vicar) on Apr 05, 2001 at 14:56 UTC
    Sorry to disagree, but you don't have to put parenthesis around the whole pattern, it will be substituted anyway.
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-12-01 07:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (795 votes), past polls