I'm trying to create a regex to tokenize a string. An example string would be.
John Mary, "Name=blah;Name=blahAgain" "Hand=1,2"
I'm trying to get back:
This was easy:
([^ ])+
For that specific example, I would do:
([^\s]*)\s+([^,\s]*)\s*,\s*"([^"]*)"\s+"([^"]*)"
update: modified to split Mary and John
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With