Created
May 3, 2015 10:31
-
-
Save andyf-7/ecf12deb263e6bfdece1 to your computer and use it in GitHub Desktop.
jqeury Mail validation in client side
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
function ValidateEmail(email) { | |
var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; | |
return expr.test(email); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment