I need a regular expression in AngularJS to verify that a decimal number falls within the range of 0 and 99999.00, with up to 2 decimal places. Instead of using the max attribute in AngularJS, I want to utilize ng-pattern. I have tested various regex patterns but none have met all the criteria. For example:
- 0 - valid
- 0.0 - valid
- 0.00 - valid
- 0.000 - invalid
- 1445.02 - valid
- -34.39 - invalid
- 59999.99 - valid
- 99999 - valid
- 99999.0 - valid
- 99999.00 - valid
- 99999.01 - invalid
- 99999.99 - invalid