this post was submitted on 18 Aug 2025
881 points (99.1% liked)

Programmer Humor

25864 readers
1149 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] axEl7fB5@lemmy.cafe 2 points 2 days ago (1 children)
[–] notarobot@lemmy.zip 2 points 2 days ago (1 children)

That's one very random place to find that. There are a lot of different one and there is no way we all just agree to use that one.

Look art his site that shows a more complete and (in theory) official website. While also explaining that there is no regex that is perfect

https://emailregex.com/

(Compete regex for the lazy)

(?:\[a-z0-9!#$%&'\*+/=?^\_\`{|}\~-]+(?:\\.\[a-z0-9!#$%&'\*+/=?^\_\`{|}\~-]+)\*|"(?:\[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\\\\[\x01-\x09\x0b\x0c\x0e-\x7f])\*")@(?:(?:\[a-z0-9]\(?:\[a-z0-9-]\*\[a-z0-9])?\\.)+\[a-z0-9]\(?:\[a-z0-9-]\*\[a-z0-9])?|\\\[(?:(?:25\[0-5]|2\[0-4]\[0-9]|\[01]?\[0-9]\[0-9]?)\\.){3}(?:25\[0-5]|2\[0-4]\[0-9]|\[01]?\[0-9]\[0-9]?|\[a-z0-9-]\*\[a-z0-9]:(?:\[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\\\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\\])
[–] axEl7fB5@lemmy.cafe 2 points 2 days ago (1 children)

MDN isn't a very random place?

[–] notarobot@lemmy.zip 1 points 2 days ago

No. But it's on the form validation topic.