Email Validation in Python || Python

 

In this we are going to see a basic program on Email Validation in Python Programming Language.


import re

gmail_addr = "[email protected]"
gmail_regex = r'^([\w]*[\w\.]*(?!\.)@gmail.com)'

if(re.fullmatch(gmail_regex,gmail_addr)):
    print("Valid gmail address")
else:
    print("Invalid gmail address")

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post