| Title |
Test
Find
non zero positive integer
|
| Expression |
^(0+[1-9]|[1-9])[0-9]*$ |
| Description |
used to validate form fields values for positive integer values greater than 0 without explicitly checking if the input form value is greater than 0 |
| Matches |
122, 9992, 000022 |
| Non-Matches |
0, 00000, 1.2, -3.22 |
| Author |
Rating:
Anurag
|
| Source |
|
| Your Rating |
|
Title: Can be simplified
Name: ngokli
Date: 12/2/2016 7:16:18 AM
Comment:
Isn't this equivalent to ^0*[1-9][0-9]*$ ?