Email validation regex (Works on all major browsers)

Code Snippets 4 U
const EmailRegex = /^(("")?(""(?!.*\\""@)(.*)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+\/=\?\^`\{\}\|~\w])*)(?:[0-9a-z_])@))((\[)?(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-\w]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$/;

Leave a Reply

Your email address will not be published. Required fields are marked *

+ sixty nine = seventy five