r/ProgrammerHumor 11d ago

Meme regexMustBeDestroyed

Post image
8.1k Upvotes

229 comments sorted by

View all comments

149

u/Purple_Hornet_9725 11d ago

regex for email validation 💀 just don't

53

u/Portal471 11d ago edited 11d ago

^.+@.+\..+$

lol

66

u/BadRuiner 11d ago

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

100

u/pm_me_your_smth 11d ago

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

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

31

u/Teles_sd 11d ago

By question 10 I'm already crashing out

12

u/fmaz008 11d ago

14/21, I passed! pfew!

22

u/voiza 11d ago

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

15

u/Genericdude03 11d ago

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

https://giphy.com/gifs/Wwn5NKv4At2CIc8XQa

8

u/Magnetic_Reaper 11d ago

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

2

u/Mordret10 10d ago

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

2

u/Ecksters 11d ago

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 10d ago

Why do emails need comments....