javascript split multiple delimiters

Solutions on MaxInterview for javascript split multiple delimiters by the best coders in the world

showing results for - "javascript split multiple delimiters"
Lino
07 Mar 2019
1>>> bits = "Hello awesome, world!".split(/[\s,]+/)
2["Hello", "awesome", "world!"]
3>>> bit = bits[bits.length - 1]
4"world!"