http://www.perlmonks.org?node_id=840686


in reply to Elegant examples to parse parenthesised strings

If, as it seems, you need only the innermost parenthesises, something like
my @exps = $text =~ / \( ( [^\(]*? ) \) /xmg;
might be good enough for this particular situation.


Krambambuli
---