I need a help on this string parsing. What i want to do is to parse a string like this one using Javascript.
"myname" secondarg "third argument" andso on
to give me a result like
[0] => myname
[1] => secondarg
[2] => third argument
[3] => andso
[4] => on
EDIT:
"test" " foo" bar "hello world" " hello "
to
[0] => 'test'
[1] => ' foo'
[2] => 'bar'
[3] => 'hello world'
[4] => ' hello '