VB RegEx Question

  • Thread starter Thread starter Masterx81
  • Start date Start date
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!
 
As far as I know, most validators *will* fail (that is, pass) if the string
is empty.
The only solution I know of, is to use them in conjunction with a
RequiredFieldValidator.

to all: Maybe there is some other way someone could contribute?
 
Back
Top