Javascript String validateEmail(email)

Description

Javascript String validateEmail(email)



function validateEmail(email) { 
    var re = /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/;
    return re.test(email);
}

Javascript String validateEmail(email)

// Check Email//from  ww w. j a  v  a 2s.  com
function validateEmail(email) {
 var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
 return re.test(email);
}



PreviousNext

Related