R
Rasika WIJAYARATNE
([1-2]{0,1}[1-9]{1})|([3]{1}[0-2]{1})
I am trying to validate for numbers between 1-32 which is the valid
range using the above regex in a asp:regexpvalidator. However it
accepts numbers 1-29 correctly but does not accept 30-32 (this is meant
to be handled by the part of the regex after the pipe | char).
Does anyone know why this does not work?
Rasika.
PS. I am unable to use the range validator in this situation.
I am trying to validate for numbers between 1-32 which is the valid
range using the above regex in a asp:regexpvalidator. However it
accepts numbers 1-29 correctly but does not accept 30-32 (this is meant
to be handled by the part of the regex after the pipe | char).
Does anyone know why this does not work?
Rasika.
PS. I am unable to use the range validator in this situation.