Skip to content

Instantly share code, notes, and snippets.

@4drian-sanchez
Last active July 28, 2023 23:57
Show Gist options
  • Save 4drian-sanchez/36505bdcc2e279e3c90b406f8edf3da3 to your computer and use it in GitHub Desktop.
Save 4drian-sanchez/36505bdcc2e279e3c90b406f8edf3da3 to your computer and use it in GitHub Desktop.
Expresion regular para validar correos electronicos
const regex = new RegExp("([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\"\(\[\]!#-[^-~ \t]|(\\[\t -~]))+\")@([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\[[\t -Z^-~]*])");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment