Tokenize a command string
- by pocoa
I have string like this:
command "http://www.mysite.com" some_param="string param" some_param2=50
I want to tokenize this string into:
command
"http://www.mysite.com"
some_param="string param"
some_param2=50
I know it's possible to split with spaces but these parameters can also be seperated by commas, like:
command "http://www.mysite.com",…