in reply to Re: regex extraction for variable number of args
in thread regex extraction for variable number of args
I modified it slightly to remove what I thought was unnecessary grouping - this still works:
Thanks also to others who posted working solutions.qr{ \&? # Leading char for Sub-name - ( [^(),\s]+ ) # Sub-name OR arg [(,)]? # Trailing "(" or comma }x;
As a learning experience, I would also like to understand why the repetition attempt in my O.P - the one without the /g - did not work. Any assistance on that ?
I hope life isn't a big joke, because I don't get it.
-SNL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex extraction for variable number of args
by Corion (Patriarch) on Jul 21, 2012 at 14:24 UTC | |
by NetWallah (Canon) on Jul 21, 2012 at 14:46 UTC | |
by Corion (Patriarch) on Jul 22, 2012 at 07:15 UTC |