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.
Asked
Active
Viewed 52 times
-2
-
1show the exemplary input and the expected output to get a quick answer – RomanPerekhrest Dec 21 '16 at 08:14
-
Which language are you using? Regex is not standardized, you know. – Sweeper Dec 21 '16 at 08:17
-
@sweeper-normal regular expression which accpets 15 digit along with 2 digit precision – Ghanshyam Mule Dec 21 '16 at 08:19
-
Maybe `^\d{1,15}(?:\.\d{1,2})?$` – Wiktor Stribiżew Dec 21 '16 at 21:41