Удалить все символы только номер JavaScript Code Ответ

var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"
Matteoweb