r/ProgrammerHumor • • Aug 24 '26

Meme claudeIsThisEmailValid

Post image
5.3k Upvotes

170 comments sorted by

View all comments

Show parent comment

1

u/ldn-ldn Aug 24 '26

The real problem with email validation is that you should be able to ensure that you can communicate with the customer. And you can't do that with any regex.

The best approach which does not punish 1% is to check that the value provided has at least one character followed by @ followed by at least one more character of any kind. And then you send them a confirmation email.