fixed floating point number regex, added test

There was a bug allowing only one digit after the decimal point.