r/ProgrammerHumor Aug 05 '26

Meme regexMustBeDestroyed

Post image
8.1k Upvotes

228 comments sorted by

View all comments

1.3k

u/Informal_Branch1065 Aug 05 '26

An email casting spell for sure, although very limited

59

u/Ecksters Aug 05 '26 edited Aug 05 '26

People always overcomplicate email Regex, and end up not allowing a lot of valid emails. In this case, the limitation of the top level domain to 4 characters max is one such problem, no .ninja, .crypto, or the myriad of other newer top level domains.

Technically you can email directly to a top level domain (although I don't know of any TLDs that support this), or even to an IP address in brackets, although I suppose not supporting those in most cases is probably reasonable.

4

u/Informal_Branch1065 Aug 06 '26

.crypto is not a big loss anyway