Indeed Text::Balanced might be a better solution although the suggested code fails to recognize '(fff)' as a separate, third, item. (probably because the parenthesis have an unbalanced nested parenthesis)
In reply to Re^2: regex to parse (nested) parenthesis delimited string?
by varian
in thread regex to parse (nested) parenthesis delimited string?
by varian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |