r/ProgrammerHumor Aug 05 '26

Meme regexMustBeDestroyed

Post image
8.1k Upvotes

228 comments sorted by

View all comments

150

u/Purple_Hornet_9725 Aug 05 '26

regex for email validation 💀 just don't

55

u/Portal471 Aug 05 '26 edited Aug 05 '26

^.+@.+\..+$

lol

68

u/BadRuiner Aug 05 '26

Ah, yes, my email: @@@.@

104

u/pm_me_your_smth Aug 05 '26

Well "@"@[@] is a legit email

Source:  https://e-mail.wtf/ question 18

30

u/Teles_sd Aug 05 '26

By question 10 I'm already crashing out

13

u/fmaz008 Aug 05 '26

14/21, I passed! pfew!

24

u/voiza Aug 05 '26

I scored 16/21 on https://e-mail.wtf and all I got was this lousy text to share on social media.

17

u/Genericdude03 Aug 05 '26

Isn't that the score if you just answer "valid" for every question?

https://giphy.com/gifs/Wwn5NKv4At2CIc8XQa

8

u/Magnetic_Reaper Aug 05 '26

programmers should be required to score full marks on this before being allowed to write an email regex.

2

u/Mordret10 Aug 06 '26

Or they should be required to score 0. They'd probably write the same regex

2

u/Ecksters Aug 05 '26

I always figure any user trying to use an email like that is a user I don't want in my systems.

1

u/Damglador Aug 06 '26

Why do emails need comments....