<td style="text-align: left; width: 90px;"> Password </td> <td style="font-family: Verdana; font-size: medium; font-style: normal; text-align: left"> <asp:TextBox ID="txtpassword" runat="server" Width="208px" ></asp:TextBox> <asp:RegularExpressionValidator ID="regpass" runat="server" ErrorMessage="RegularExpressionValidator" ControlToValidate="txtpassword" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator> </td>
(?=.*\d) # must contain at least one digit (?=.*[A-Z]) # must contain at least one uppercase character (?=.*\W) # must contain at least one special symbol . # match anything with previous condition checking {8,8} # length at least 8 characters and also maximum of 8
((?=.*\d)(?=.*[A-Z])(?=.*\W).{8,8})
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)