I think your life would be a lot happier if you abandoned the idea of using regular expressions for this task and looked at Text::Balanced instead.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: search for matching parentheses
by davorg
in thread search for matching parentheses
by embirath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |