DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript split string by multiple characters
let string = "Hello awesome, world!" string.split(/[s,]+/) // Hello,awesome,world!
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#split
#string
#multiple
#characters
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit