Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^5: Recursive substitution

by ikegami (Pope)
on Nov 10, 2009 at 18:16 UTC ( #806301=note: print w/replies, xml ) Need Help??

in reply to Re^4: Recursive substitution
in thread Recursive substitution

I want recursion.

Sorry, but you can't execute another s/// without /e, (?{}) or (??{}). Recursion is out.

As for a solution without recursion, I don't know of any.

Replies are listed 'Best First'.
Re^6: Recursive substitution
by JadeNB (Chaplain) on Nov 10, 2009 at 19:33 UTC
    Sorry, but you can't execute another s/// without /e, (?{}) or (??{}).
    Since the regex engine isn't re-entrant, I can't execute another s/// even with /e, (?{}), or (??{}), right?
      That is my understanding. You can have recursive patterns, but I don't think you can enter another match when one is already in progress.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2021-04-19 13:19 GMT
Find Nodes?
    Voting Booth?

    No recent polls found