Write a python function to find and print if a email address given is valid or not
Topic: Write a python function to find and print if a email address given is valid or not
Solution
import re regex = '^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$' def check(email): if(re.search(regex,email)): print("Valid Email") else: print("Invalid Email")
List all Python Programs