Comment on Strings do too many things

<- View Parent
ono@lemmy.ca ⁨9⁩ ⁨months⁩ ago

By the way, please don’t write regex to try to validate email addresses. Seriously.

Amen.

There are libraries for that; some of them are even good.

Spoiler alert: Few of them are good, and those that are so simple that you might as well not use a library.

The only way to validate an email address is to send a message to it, and verify that it arrived.

source
Sort:hotnewtop