Google Analytics Alternative

Search This Blog

Monday, November 7, 2011

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 


how to work with regex library 

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


No comments: