Created
January 12, 2018 13:10
-
-
Save sarkarshuvojit/cd0b23f091f562e7dc4a2f95ec6c36f9 to your computer and use it in GitHub Desktop.
Email Regex for Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_email.trim().length==0 || user_email.match(/^[\w!#$%&\'*+\/=?^`{|}~.-]+@(?:[a-z\d][a-z\d-]*(?:\.[a-z\d][a-z\d-]*)?)+\.(?:[a-z][a-z\d-]+)$/i) == null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment