|
|
Browse by Tags
All Tags » ASP.NET » regular expression validator
-
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 ...
-
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 ...
-
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 ...
|
|
|