Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex remove non numeric

s = "joe ($3,004.50)";
s = Regex.Replace(s, "[^0-9.]", "");
// 3004.50
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #remove #numeric
ADD COMMENT
Topic
Name
7+8 =