Email regex does not match user.name-secondname@domain.com oder an other Adresse with valid "-" before @ It should be def _is_email(self, email): pattern = r'[\-\.\w]+@[-\.\w]+\.\w+' if re.fullmatch(pattern, email): return True
Email regex does not match user.name-secondname@domain.com oder an other Adresse with valid "-" before @
It should be