var s = '123ab,123,p';
s = s.replace(new RegExp("[^\\d.]+","g"),"");
s = s.replace(new RegExp(",","g"),".");
alert(s);
18 cze 2009
var s = '123ab,123,p';
s = s.replace(new RegExp("[^\\d.]+","g"),"");
s = s.replace(new RegExp(",","g"),".");
alert(s);