1

Only numbers between 0.00 and 100.00 can be allowed. The number can also be without decimal point. I am trying to use this regex,

/^[1-9][0-9]{0,2}(?:,?[0-9]{3}){0,3}(?:\.[0-9]{1,2})?$/

But this allows more than 3 numbers before decimal point. Trying to use the regex in ng-pattern of angular js.

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563

0 Answers0