Strong password regular expression

Jayeshl
Posted by Jayeshl under Regular Expressions category on | Points: 40 | Views : 4801
hi friend,

what is strong password?
Ans :: it contains at least
1 small letter character
1 capital letter character
1 numeric character
1 special symbol

and length of password is between 4 to 8 Character

that is called strong password..

regex for Strong password

^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&?]).{4,8}$


how to work with asp.net regex library

 bool IsMatch1 = Regex.IsMatch(passwordString, @"^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&?]).{4,8}$");



thanks
jayeshl

http://sqlassistant.blogspot.com

Comments or Responses

Login to post response