JavaScript Hapus chars non numerik dari string Keep dot
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"
Matteoweb
var s = "-12345.50 €".replace(/[^\d.-]/g, ''); // gives "-12345.50"
var s = "-12345.50 €".replace(/[^\d.-]/g, '');