Checking if email is valid

De ongekruisigde verstotene at news.eternal-september.org
Wed Nov 1 16:40:59 EDT 2023


On 2023-11-01, Mats Wichmann <mats at wichmann.us> wrote:
> On 11/1/23 05:35, Simon Connah via Python-list wrote:
>> OK. I've been doing some reading and that you should avoid regex to check email addresses. So what I was thinking was something like this:
>
> To be a little more specific, Avoid Rolling Your Own RegEx.  It's very 
> tricky, and you will get it subtly wrong.

Use e.g.: https://gitea.ksol.io/karolyi/py3-validate-email



More information about the Python-list mailing list