Last active
December 22, 2015 00:38
-
-
Save eliezerfot123/6390244 to your computer and use it in GitHub Desktop.
Como validar un correo Electrónico, usando Expresiones Regulares.
This file contains hidden or 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
#!/usr/lib/python | |
import re | |
correo = '[email protected]' | |
if re.match('^[(a-z0-9\_\-\.)]+@[(a-z0-9\_\-\.)]+\.[(a-z)]{2,4}$',correo.lower()): | |
print 'Correo Correcto' | |
else: | |
print 'El correo no es correcto...' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment