Strong password regular expression

Posted by Jayeshl under Regular Expressions category on | Points: 40 | Views : 4664
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


how to work with regex library

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


Comments or Responses

Login to post response