Fix regular expression for matching a float
Created by: priteau
Using . instead . meant that the regular expression was valid for strings containing a single non-number character.
This was the case on a few of our new machines, where a serial number such as '4078C42' would be turned into '4078.0'.