Skip to content

Instantly share code, notes, and snippets.

@eliezerfot123
Last active December 22, 2015 00:38
Show Gist options
  • Select an option

  • Save eliezerfot123/6390244 to your computer and use it in GitHub Desktop.

Select an option

Save eliezerfot123/6390244 to your computer and use it in GitHub Desktop.
Como validar un correo Electrónico, usando Expresiones Regulares.
#!/usr/lib/python
import re
correo = 'correo@correo.com'
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