How to validate positive integer numbers using ng-pattern
. Now i have this pattern ^[0-9]{1,7}(\.[0-9]+)?$/
. But it allows decimal values. I need to disallow decimal values too
Asked
Active
Viewed 2,547 times
1

Kalpa Gunarathna
- 1,047
- 11
- 17

byteC0de
- 5,153
- 5
- 33
- 66
-
^[0-9]\d*$ try this – zabusa Dec 18 '17 at 06:34
-
@zabusa no luck\ – byteC0de Dec 18 '17 at 06:37