in reply to floating point validation
The question seemed to be how to validate a given string against a number format with given number of decimals before and after the decimal point.