Hi,
I'm using this expression to validate e-mail addresses:
<asp:RegularExpressionValidator ControlToValidate="txtTo" Display="Dynamic" ErrorMessage="Please enter a valid e-mail address." id="FromValidator1" runat="server" ValidationExpression="^([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])$"></asp:RegularExpressionValidator>
What I want to do now is also to exclude domains like hotmail.com, yahoo.com, etc.
Can you point me in the right direction?
I'm using this expression to validate e-mail addresses:
<asp:RegularExpressionValidator ControlToValidate="txtTo" Display="Dynamic" ErrorMessage="Please enter a valid e-mail address." id="FromValidator1" runat="server" ValidationExpression="^([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])$"></asp:RegularExpressionValidator>
What I want to do now is also to exclude domains like hotmail.com, yahoo.com, etc.
Can you point me in the right direction?