Regular Expression for strong password

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

Popular posts from this blog

sp_addmessage can be used to create a User-Defined Error Message

Command-line Building With csc.exe

Prepare DTO layer by using below script