problem in an expression that checks email validity

wxdqz

New Member
Hi, would someone tell me what I have to add in the expression below for my formmail to work ? In fact this expression doesn(t work with email addresses like <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> ( because of the . before the @ )
thanks

var verif = /^[a-zA-Z0-9_-.-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/
if (verif.exec(theForm.email.value) == null)
{
alert("Votre adresse email est probablement incorrecte...");
theForm.email.focus();
return (false);
 
Back
Top