Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript split string into array by comma and space

input.split(/[ ,]+/); //splits string using RegEx on a space OR a comma
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #split #string #array #comma #space
ADD COMMENT
Topic
Name
2+1 =