Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove multiple commas from string

/[,s]+|[,s]+/g

var str= "your string here";
//this will be new string after replace
str = str.replace(/[,s]+|[,s]+/g, 'your string here');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #remove #multiple #commas #string
ADD COMMENT
Topic
Name
6+8 =