ChangePasswordNewPasswordRegex
VB.NET
<!-- <Snippet1> -->
<%@ page language="VB"%>
<script runat="server">
</script>
<html>
<head runat="server">
<title>Change Password with Validation</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:changepassword id="ChangePassword1"
runat="server"
PasswordHintText = "Please enter a password at least
7 characters long, containing a number and one special character."
NewPasswordRegularExpression = '@\"(?=.{7,})(?=(.*\d){1,})(?=(.*\W){1,})'
NewPasswordRegularExpressionErrorMessage = "Your
password must be at least 7 characters long, and contain at least one number and
one special character.">
</asp:changepassword>
</div>
</form>
</body>
</html>
<!-- </Snippet1> -->