Junaid Ahmed
Mindful Coder

Follow

Mindful Coder

Follow

Email regex

Junaid Ahmed's photo
Junaid Ahmed
·Sep 4, 2018·

1 min read

Play this article

This regex will validate emails of this format

any-normal-email-chars@anydomain.c.c.c

/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/

 
Share this