Skip to content
DevMeme
2422 of 7590
DevCommunities Post #2692 · source on Telegram

Email Regex: The Eternal Developer Struggle

Description

A two-panel meme that humorously illustrates a universal developer experience that never changes with time. The top panel is labeled 'DAY 1 OF PROGRAMMING' and shows a screenshot of the Google search homepage with the query 'regex for email validation' typed into the search bar. The bottom panel, labeled '10 YEARS OF PROGRAMMING,' shows the exact same screenshot, with the identical search query. The joke is that writing a regular expression for email validation is so notoriously complex and error-prone that no developer, regardless of their experience level, bothers to memorize it or write it from scratch. It highlights the practical reality that even seasoned professionals rely on searching for established, reliable solutions for common, yet tricky, problems. This meme is a nod to the fact that experience is less about rote memorization and more about knowing what to look up and where to find the best answer

Comments

24
Anonymous ★ Top Pick Seniority with regex isn't about writing it from memory; it's about knowing which of the top 5 Stack Overflow answers is the least wrong
  1. Anonymous ★ Top Pick

    Seniority with regex isn't about writing it from memory; it's about knowing which of the top 5 Stack Overflow answers is the least wrong

  2. Anonymous

    Ten years in and I can autoscale Kubernetes across three continents, but one user enters “dev@[IPv6:2001:db8::1]” and I’m back on Google hunting for that six-kilobyte email regex I still refuse to memorise

  3. Anonymous

    After 20 years, you finally memorize the email regex... just in time for everyone to switch to magic links and OAuth because nobody wants to deal with RFC 5322's 6,857 word specification for what constitutes a valid email address

  4. Anonymous

    After 10 years, you've learned that email validation regex isn't something you memorize - it's something you've bookmarked in three different browsers, saved in a gist you can never find, and ultimately just Google again because the RFC 5322 spec is 3,000 lines of 'technically valid' edge cases that make you question whether anyone actually needs to receive email from 'user@[IPv6:2001:db8::1]' anyway

  5. Anonymous

    Ten years in and I still Google “regex for email validation” - not for the monster pattern, but for the Stack Overflow link I send to Product: the only correct validator is “.+@.+” and a magic link

  6. Anonymous

    Email regex: the one pattern where time complexity is eternally O(Google), no local optimization beats the cloud

  7. Anonymous

    Seniority is realizing the only correct email validator is send-a-verification-mail, yet my fingers still type “regex for email validation” before the coffee finishes pouring

  8. @youmil 5y

    ihateregex.io

    1. Deleted Account 5y

      Оххх

    2. @Vladeiy 5y

      🔥🔥

  9. @ryankrage77 5y

    the best way to validate email is to email a link to the user

  10. Deleted Account 5y

    Why for 10 years Google didn't change design?

    1. @Linegel 5y

      Are you satisfied now?

      1. Deleted Account 5y

        Yep

  11. @Four_Velocity 5y

    Oh no no no😔 You should never validate email with regex...

    1. @feskow 5y

      Why not?

      1. @Four_Velocity 5y

        https://davidcel.is/posts/stop-validating-email-addresses-with-regex/

      2. @Four_Velocity 5y

        got habr 4 u, if u know russian :) https://habr.com/ru/post/175375/

        1. @feskow 5y

          I know russian, that's for the articles :)

      3. @Four_Velocity 5y

        and in this article you can find really crazy examples of valid addressees, that will not pass regex validation https://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx/

        1. @feskow 5y

          My world was a lie, I'm outta create some crazy unique email Thanks for opening my eyes :D

          1. @Four_Velocity 5y

            Ahahah, no prob 🙃

  12. @Four_Velocity 5y

    same on habr in Russian https://habr.com/ru/post/274985/

  13. @Vladeiy 5y

    Тру...

Use J and K for navigation