Regular Expression for minimum value 18 and maximum 99 with leading zero. Means my number should be from 18 to 99. With one condition of leading zero i.e 18 == 018, 99 == 099
Try this it will help you
Less than 18 and greater than 99 is not allowed
^(1[89]|[2-9][0-9])$
^0?1[89]|0?[2-9][0-9]$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With