PyMenuSite/utils.py

7 lines
152 B
Python
Raw Normal View History

2023-02-11 08:37:10 -05:00
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))