if you don't need to use RegExp, let JS's math do the heavy-lifting:
var n=myInput.value;
if(!n || +(+n || 0).toFixed(2) != +n) {
alert("real numbers only!");
myInput.select();
}
the validation routine part is made up and poor UX, but the math is solid and bullet-proof.