javascript split multiple delimiters

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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!"