Check the valid email address in JavaScript

Check the valid email address in JavaScript

Check Valid Email::

function validateEmail(email) {

    var re = /^(([^<>()\[\]\\.,;:\[email protected]"]+(\.[^<>()\[\]\\.,;:\[email protected]"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

    return re.test(email);

}

Check Email Validation using JavaScript in php

function validateEmail(email) { var emailReg = /^([\w-\.][email protected]([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test(email); }