PyMenuSite/utils.py
2023-02-11 14:37:10 +01:00

7 lines
152 B
Python

import re
regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b'
def check_email(email: str):
return (not re.fullmatch(regex, email))