Answers for "how to validate email with regex"

7

email validation regex

const emailRegex = RegExp(
    /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
  );
Posted by: Guest on April-05-2020
2

regex email address

/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
Posted by: Guest on August-21-2020
2

email regex

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

email regex

#found on stackoverflow
([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)
#to put all mails in a list from a string that refers to an html text code 
emails = re.findall("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)", html_text)
Posted by: Guest on May-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language