Answers for "validate and email address using a regualar expression"

10

regex validate email

function validateEmail(email) {
    const 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 July-06-2020
2

email regex

[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,3}
Posted by: Guest on June-10-2020

Code answers related to "validate and email address using a regualar expression"

Code answers related to "Javascript"

Browse Popular Code Answers by Language