This kind of thing is usually achieved with Text::Balanced.
In reply to Re: regex to parse (nested) parenthesis delimited string?
by kyle
in thread regex to parse (nested) parenthesis delimited string?
by varian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |