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

Function EmailCheck

ExtractPhoneNumberEmail/PhoneEmailExtraction.py:36–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def EmailCheck():
37 # Regular expression for matching email addresses
38 emailCheck = re.compile(
39 r"""
40 ([a-zA-Z0-9._%-]+ # username
41 @ # @ character
42 [a-zA-Z0-9_-]+ # domain name
43 \. # .(dot)
44 [a-zA-Z]{2,3} # domain type
45 (\.[a-zA-Z]{2,3})?) # second domain type like co.in
46 """,
47 re.VERBOSE,
48 )
49
50 # Loop through the email addresses found in the text
51 for emails in emailCheck.findall(text):
52 matches.append(emails[0])
53
54
55# Print the output from matches list

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected