in reply to Elegant examples to parse parenthesised strings
If, as it seems, you need only the innermost parenthesises, something like
Krambambuli
---
might be good enough for this particular situation.my @exps = $text =~ / \( ( [^\(]*? ) \) /xmg;
Krambambuli
---
|
---|
In Section
Seekers of Perl Wisdom