in reply to regex to parse (nested) parenthesis delimited string?
This kind of thing is usually achieved with Text::Balanced.