Answers for "javascript pattern for email validation"


javascript regex email

function validateEmail (emailAdress)
  let regexEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
  if (emailAdress.match(regexEmail)) {
    return true; 
  } else {
    return false; 

let emailAdress = "[email protected]";
Posted by: Guest on March-26-2020

js validate email

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(email);
Posted by: Guest on May-06-2020

Code answers related to "javascript pattern for email validation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language