M
Masterx81
Hi to all...
I'm new to regex, so sorry for the silly question...
I want to do a client side validation for this string:
[r|ra|tc|tr|t|e|c|a|hpa|lpa|hpe|R|RA|TC|TR|T|E|C|A|HPA|LPA|HPE]/
\d{1,2}
But it passes also if the string is null, how i can prevent this?
I've read that the switch (?i) isn't working on the client js side, so
i've put all case variations, there is a better way to do this?
Really thanks to all!
I'm new to regex, so sorry for the silly question...
I want to do a client side validation for this string:
[r|ra|tc|tr|t|e|c|a|hpa|lpa|hpe|R|RA|TC|TR|T|E|C|A|HPA|LPA|HPE]/
\d{1,2}
But it passes also if the string is null, how i can prevent this?
I've read that the switch (?i) isn't working on the client js side, so
i've put all case variations, there is a better way to do this?
Really thanks to all!