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

Re^3: brackets matching problem

by hanenkamp (Pilgrim)
on Aug 19, 2004 at 11:56 UTC ( [id://384263]=note: print w/replies, xml ) Need Help??


in reply to Re^2: brackets matching problem
in thread brackets matching problem

Greedy matching applies to the closures, not to alternatives. Besides, in this case, whether 12 matches or 1 then 2, it's the same length, is it not? From perlre, "alternatives are not necessarily greedy." You can make your matches greedy by arranging them how you like.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found