I want to split a string into an array by ";"
, " "
and ","
delimiters in one line. Is there a way to do that without using regex?
Yes. Possible but with regex.
string.split(/[;, ]/)
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