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

Browse by Tags

All Tags » regex » asp.net » regular expression validator
  • How to accept certain symbols and reject others

    I'm trying to create a regex that has the following requirements: 1. must be at least 7 characters in length 2. must contain at least 1 digit 3. must contain at least 1 lowercase letter 4. must contain at least 1 uppercase letter 5. must contain at least one of the following symbols: = ! $ % ^ & + 6. It must reject any word that ...
    Posted to Construction Advice (Forum) by RobertH on November 13, 2007
  • Re: Simple Regex

    I am assuming you mean that if there is an "@" sign in the text box you want the validator to not allow the text through. For help with asp.net controls you really should be at the http://aspadvice.com forums. This is for help with regular expressions. The regex you need is ^[^@]+$  So the asp.net you will need is something like ...
    Posted to Construction Advice (Forum) by Brendan on March 23, 2007