Search
 
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
Name
9+6 =