Search found 2 matches

by eriko
Tue Jan 16, 2007 4:06 am
Forum: Regex
Topic: extract method arguments
Replies: 4
Views: 1827

That is not enough since an argument can be another function thus explode splits the string in a bad way.

func(func(A,B), B)

with explode

func(A
B)
B

i want

func(A,B)
B
by eriko
Mon Jan 15, 2007 1:49 pm
Forum: Regex
Topic: extract method arguments
Replies: 4
Views: 1827

extract method arguments

Hi

I have a string in the following format

function(arg1,arg2,arg3)

the arguments are simple [\w\d]+ but i cant find a simple way to extract them because of the comma

Any clues?