Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript split multiple delimiters

>>> bits = "Hello awesome, world!".split(/[s,]+/)
["Hello", "awesome", "world!"]
>>> bit = bits[bits.length - 1]
"world!"
 
PREVIOUS NEXT
Tagged: #javascript #split #multiple #delimiters
ADD COMMENT
Topic
Name
7+9 =