Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by TimToady (Parson)
on Sep 25, 2007 at 18:33 UTC ( [id://641011]=note: print w/replies, xml ) Need Help??


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

I came to PM late and didn't possbly get the whole problem connected w/above topic.
That's what the "in thread" link up at the top is for, I believe... :-)

And, in fact, ikegami already posted a code assertion solution earlier in the thread.

Wouldn't this be very simple to solve by code assertion?
I suspect your definition of "very simple" must be different from mine. It's nice to have an escape hatch like code assertions for when the basic mechanism is insufficient (and indeed, Perl 6 provides more such escape mechanisms and also makes them easier to use), but it would be even better if the basic capture mechanism did what you wanted it to do. That's my idea of simple.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found