Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Arbitrary number of captures in a regular expression

by demerphq (Chancellor)
on Sep 25, 2007 at 16:12 UTC ( #640982=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Arbitrary number of captures in a regular expression
in thread Arbitrary number of captures in a regular expression

I dont have time to put together a working example, but what i had in mind was using while, \G and also the /gc modifier in scalar context. Maybe from that you can come up with a working example, or prove me wrong, before I get the time to do anything useful with it.

Using the underused /gc modifier was the key point I was thinking of tho.

Oh and to be clear I wasnt trying to say my way would be better, just different. :-)

---
$world=~s/war/peace/g


Comment on Re^4: Arbitrary number of captures in a regular expression

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-06 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls