Displaying page
of
pages;
Items to
Title |
Test
Details
Password Validation
|
Expression |
^.*(?=.{6,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).*$
|
Description |
Well, I don't remember where from I got this expression, but I modified it a bit to work with asp.net 2.0's Regular expression validator. This validates if the password has atleast 6 characters, of which, atleast 1 character has to be Upper case, atleast 1 lower case, atleast 1 number and atleast one non-word character(say special symbols). Hope this is helpful.
|
Matches |
Aa@123
|
Non-Matches |
abcde, ASaa
|
Author |
Rating:
Sravan
|
Displaying page
of
pages;
Items to