This is a link post for some of the regular expressions that can be used for passwords. Specifically, you can use them for asp.net's passwordStrengthRegularExpression. Note: Be sure to test them *before* you use them in a production app. The table indicates the minimum length, if it requires at least one upper, lower, digit or special character.ExpressionLenUpperLowerDigitSpecial^.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=]).*$10YYYY^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$8YYYN^.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=]).*$10YYYY
Musings and ramblings on .Net, Steelers, and other Stuff.