alert(isNaN("Infinity"));
alert(isNaN('0xff22'));
var str = '7.07'; var regexp = /^\d+(\.\d+)?$/; var result = regexp.test(str)?str:''; alert(result);
var string = 'df098.65llkj'; alert(+string.match(/\d+\.\d+|\d+/));
var str = 'd-f-098.65llkj'; alert(str.match(/-{0,1}(?:\d+(?:\.|,)\d+|\d+)/));