Answers for "email validation in javascript without regular expression"

15

email regex javscript

function validateEmail(email) {
    var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[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(String(email).toLowerCase());
}
Posted by: Guest on November-17-2019
1

regular expression email javascript

function isEmail(emailString) {
            var regEx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
            return emailString.match(regEx) != null;
        }
Posted by: Guest on July-19-2021

Code answers related to "email validation in javascript without regular expression"

Code answers related to "Javascript"

Browse Popular Code Answers by Language