MCPcopy Create free account
hub / github.com/geekcomputers/Python / email_validation

Function email_validation

cli_master/validation_page.py:18–21  ·  view source on GitHub ↗
(email)

Source from the content-addressed store, hash-verified

16
17
18def email_validation(email):
19 # Basic email format validation
20 pattern = re.compile(r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$")
21 return bool(pattern.match(email))
22
23
24# Example usage:

Callers 1

validation_page.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected