I am have following regex to check decimals numbers and prevent long precision. I want to prevent precision from exceeding 18 digits. but actual number can be any long.
^[+-]?([0-9]*[.])?(?([^.])([0-9]{1,18})|([0-9]))$
Demo: http://ift.tt/2oHwKnq
Aucun commentaire:
Enregistrer un commentaire