J
John Yopp
I'm trying to use a asp:RegularExpressionValidator to validate the
strength of a password. When I test the regular expression with
Regex.IsMatch, it works perfectly. However, when used within a
RegularExpressionValidator, it always returns false.
Has anyone else had issues with the RegularExpressionValidator not
correctly parsing a regular expression?
The regular expression I am using is:
"^.*(?=.*\d)|(?=.*[^a-zA-Z0-9])|(?=.*[A-Z])(?=.*[a-z])(?=.{8,}).*$"
Thanks
strength of a password. When I test the regular expression with
Regex.IsMatch, it works perfectly. However, when used within a
RegularExpressionValidator, it always returns false.
Has anyone else had issues with the RegularExpressionValidator not
correctly parsing a regular expression?
The regular expression I am using is:
"^.*(?=.*\d)|(?=.*[^a-zA-Z0-9])|(?=.*[A-Z])(?=.*[a-z])(?=.{8,}).*$"
Thanks