xxxxxxxxxx
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-]+)(\-[a-zA-Z]{2,5}){1,2}$
xxxxxxxxxx
//For simple validation including a dot
const emailRegex = RegExp(/^\S+@\S+\.\S+$/);
xxxxxxxxxx
// Simple and very useful regex. Just Pass your email whare is email here
const regex = /\S+@\S+\.\S+/
regex.test(email here)
xxxxxxxxxx
// This is by far the best regex used for email
^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$
xxxxxxxxxx
const EMAIL_PATTERN =
/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
xxxxxxxxxx
let regex = new RegExp("([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\"\(\[\]!#-[^-~ \t]|(\\[\t -~]))+\")@([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\[[\t -Z^-~]*])");