Answers for "remove double commas inside single comma in javascript"

0

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');
Posted by: Guest on May-19-2021

Code answers related to "remove double commas inside single comma in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language