Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Regex Questionby NetWallah (Canon) |
on Nov 07, 2016 at 21:23 UTC ( [id://1175468]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|