vendredi 26 août 2016

Need a regex for float values

I have a number field in the form and am validating that number field for float values. But I need to restrict the float number to only one period (.)

For example: 122.00

But now its taking input like this also: 123.00.. I dont want allow another period (.) in the end again.

Is there any regex for this?

Aucun commentaire:

Enregistrer un commentaire