|
|
Browse by Tags
All Tags » .NET » regular express... » regular expression
-
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 ...
-
I need a regex that matches a string containing 6 alpha, 2 alphanumeric and 3 OPTIONAL alphanumeric, upper and lower case. I need this for validating strings in ASP.net 2.
Eg:.
abcdefab345
abcdef22
abcdef5e
abcdef3ee5e
abcdef55asd
abcdefr5
and should not match
abcs
abcd34d3
abcdef23f
abcdefd
abcdef
|
|
|