Simple regular expression(Pattern) for a decimal with a precision of 2

84 views Asked by At

I have number input text box.It has 2 digit precision value. My requirement is that it should accept only 15 digit number along with precision.I have tried with several regular expression but haven't worked. Could you please suggest regular expression or pattern for it.

1

There are 1 answers

1
Ihor Dobrovolskyi On

You can use this regex: \d{1,15}