Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Expression to exclude two Strings

  •  08-21-2008, 10:18 AM

    Expression to exclude two Strings

    This seems like it wouldn't be too difficult, but I am having lots of problems. I am using ASP.NET I have a form with a list of states using their two letter abbreviation. I have a regular expression validator and I would like for it to fail if the person chooses ME or WV from the list. I have have tried several expressions in Expresso and none seem to return the desired results.

    I tried [^ME]* but that excludes anything which contains M or E but I want it to only exclude items which contain both M and E.  

     

     

View Complete Thread