Regexp for handling recursive arguments
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-03-12T06:50:25Z
Indexed on
2010/03/12
6:57 UTC
Read the original article
Hit count: 292
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
© Stack Overflow or respective owner