javascript remove all non numeric characters code example
Example 1: javascript remove non numeric chars from string keep dot
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"
Example 2: js remove all non numeric from string
numString = myString.replace(/\D/g,'');