Clean string from non numerical chars

var a:
a = 'hndj76hew4ht6';
a = Number(a.replace(/[^0-9-.]/g, ""));

Post a comment

Comments closed