Regexp for handling recursive arguments
- by Matt
Hi all,
I'm a regexp novice, so I'm wondering what the regexp for the following:
function {function arg1, arg2}, arg3
I'm looking to be able to just select the top-level arguments: {function arg1, arg2} & arg3
Ideally the response would be using preg_match in PHP, but almost any regexp would work fine.
Thanks!
Matt