#!/usr/bin/python def valid_email(email): import re reg = re.compile('([\w\.\-]+@[\w\.\-]+)') return reg.match(email)