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

Browse by Tags

All Tags » 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
  • Regular expression for phone number

    Hi, I want to validate the phone number(landline or mobile) using a regular expression using Regularexpressionvalidator Phone number should be global (like used all over the world). It may contain special characters(Optional) like "hypen"(-), or "Paranthesis"(). Ex: 086-104-2222 or  (086)-104-2222 or ...
    Posted to Construction Advice (Forum) by shwetha on September 12, 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