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

98 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 best solutions below

1
On

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