Layout: On create user screens, the user inputs various user information and creates a password for the user. Click "add User", and create the user.
The passwords in the DB must be 7 characters in length and contain at least 1 non-alphanumeric character. So in response, I created a regular expression and added it to a Regular Expression Validator.
<asp:RegularExpressionValidator runat="server" ID="regExPassword" ValidationExpression="^[\w]*(?=\w*\W)[\w\W]{7,}" ControlToValidate="txtPassword" Display="none" ErrorMessage="Password..blah blah blah"></asp:RegularExpressionValidator>
The problem is that the expression doesn't want to work with the asp validator. It won't stop displaying the Error Message even when the password should be correct.
I have tested the regular expression with two Regex progz...RegexBuilder and The Regex Coach. Each one passes with flying colors.
^[\w]*(?=\w*\W)[\w\W]{7,}
I have exhausted all my resources (Google + all my asp books) and any help would be greatly appreciated. Thanks.
-D