I want to match any word except
- the first word
- anything that matches
(-(-)?\w*(=\w*)?)
Example input:
test --par2 --par23=whatever 0 xd true hello "string test"
test --par23=whatever 0 xd true hello --par2 "string test"
test 0 xd "string test" true hello --par2 --par23=whatever
What I want is:
0, xd, true, hello, "string test"
I don't want: test
, --par2
and --par23=whatever
Language: JavaScript
What would be a good idea?