I'm using the ASP.NET Membership property for authentication on my ASP.NET website. I want the passwords to be pretty secure. I want them to be 7 digits long, containing a letter, number, and a special character.
I found this to be added to the web.config
passwordStrengthRegularExpression=" @\"(?=.{6,})(?=(.*\d){1,})(?=(.*\W){1,})"
However, when I add this to my Membership profile, I get the following error:
Name cannot begin with the '(' character, hexadecimal value 0x28. Line 26, position 445.
So it looks like it's not seeing the escape character after the @ symbol, and it's trying to use that quote to end the tag. Any idea what I'm doing wrong?
Lastly, how would I modify this to also require a lower case letter and an upper case letter?