how to remove letters in a string and remain with only numeric in javascript code example
Example: javascript remove non numeric chars from string keep dot
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"