EMail Validation (Regular Expression)

C

Clive

Hi,

I am using below email validator.

On tabbing out of my textbox it displays an error if it si
not in the correct format.

If i go back and input (e-mail address removed) it still
displays the error and I can't submit my form. Why is this?

<asp:RegularExpressionValidator id="EAV" Font-Size="10"
Font-Bold="True" controltovalidate="txEMail"
runat="server" ErrorMessage="EMail Adress must be valid"
RegularExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.
[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)
$"></asp:RegularExpressionValidator>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top