Created
June 24, 2011 15:10
-
-
Save eloyz/1044977 to your computer and use it in GitHub Desktop.
Check if Valid Email via Django Regex
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
from django.core.validators import email_re | |
def is_email_valid(email): | |
""" Check if valid email via Django regex """ | |
return bool(email_re.match(email)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment