JavaScript Eliminar caracteres no numéricos de String Keep Dot
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"
Matteoweb
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"