Answers for "how to validate email javascript by regular expression"

4

how to validate an email address in javascript

function validateEmail(email) 
    {
        var re = /S+@S+.S+/;
        return re.test(email);
    }
    
console.log(validateEmail('[email protected]'));
Posted by: Guest on June-18-2020
2

regex pattern to validate email

[a-zA-Z0-9._-]{3,}@[a-zA-Z0-9.-]{3,}.[a-zA-Z]{2,4}
Posted by: Guest on August-08-2020

Code answers related to "how to validate email javascript by regular expression"

Code answers related to "Javascript"

Browse Popular Code Answers by Language