import re test = input() if re.match(r'\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+.)+[A-Za-z]{2,14}',test): print('email is ok') else: print('email is failed')
Sign in to make a reply
ColinShi2011
import re test = input() if re.match(r'\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+.)+[A-Za-z]{2,14}',test): print('email is ok') else: print('email is failed')