Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Regex Question

by NetWallah (Canon)
on Nov 07, 2016 at 21:23 UTC ( [id://1175468]=note: print w/replies, xml ) Need Help??


in reply to Regex Question

Consider Regexp::Common::balanced, Text::Balanced.
Update: Also Parse::RecDescent.

tybalt89's code is brittle - will break if the closing brace is not the first character, or if any option starts with "object...".

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found