Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
180 B
2
Indexable
Never
import re
email=input("Enter the email-id to check : ")

e=re.search("\w*@gmail[.]com",email)

if e!=None:
    print("Email is valid")
else:
    print("Email is not valid")
Leave a Comment