I've strings like
con(tRegionDefaults.committee_chairman,', Secretary & Treasurer')
con('Non-Voting Member - ',tRegionDefaults.corptypelong,' Manager')
con('Vice ',tRegionDefaults.committee_chairman)
Tried to make a regex for getting all function parameters from each of the examples (including single quotes where the argument is a string), however with no success.
What I came upon was this regex but it doesn't give me groups of the function parameters:
([\(])([^,]+)+(\))
Can anyone give hint how to do that?
(to). If you have to allow nested parentheses, you need to write a real parser, regular expressions are not the right tool.+or*, it just captures the first match.\(inside[].