I am using the following regex to validate decimal numbers with dot .
.
/^[0-9]*\\.?[0-9]*$/
It works fine for all the cases except
Simply add one or more quantificator:
^[0-9]+(\.[0-9]+)?$