Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Regex Question

by NetWallah (Canon)
on Nov 07, 2016 at 21:23 UTC ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-08-09 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?