Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Mail Valid or Not
- import re
- email = input()
- check_mail = re.findall(r'[a-z A-Z 0-9 _ \- \.]+[@][a-z]+[\.][a-z]{2,3}', email)
- if email in check_mail:
- print("Valid")
- else:
- print("Invalid")
Add Comment
Please, Sign In to add comment