Answers for "how to remove all characters except numbers and commas in javascript"

0

remove commas and dollar sign from string js

parseFloat('$148,326.00'.replace(/\$|,/g, ''))
Posted by: Guest on December-14-2020
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 "how to remove all characters except numbers and commas in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language