MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / isValidEmail

Function isValidEmail

Email Slicer/EmailSlicer.py:3–11  ·  view source on GitHub ↗
(email)

Source from the content-addressed store, hash-verified

1import re
2
3def isValidEmail(email):
4
5 # Regular expression for validating an Email
6 regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
7
8 if(re.fullmatch(regex, email)):
9 return True
10 else:
11 return False
12
13email = input("Enter your email id - ")
14

Callers 1

EmailSlicer.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected