Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Everyone knows what an email address is, right? (Quiz)

Everyone knows what an email address is, right? (Quiz)

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
140 Posts 105 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T [email protected]
    This post did not contain any content.
    G This user is from outside of this forum
    G This user is from outside of this forum
    [email protected]
    wrote last edited by
    #131

    I kind of expected a lot of this; I remember the sendmail 4 book from back in the day when O'Reilly had that, DNS and BIND, and Perl as the entirety of its corpus.

    1 Reply Last reply
    0
    • mobotsar@sh.itjust.worksM [email protected]

      In response to your edit.

      Yes, or countries could use their cctld, e.g. email@us or noreply@uk.

      Or any tld owner could do the same with theirs, of course.

      P This user is from outside of this forum
      P This user is from outside of this forum
      [email protected]
      wrote last edited by
      #132

      Pretty cool

      1 Reply Last reply
      0
      • N [email protected]

        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])+)\\])
        
        A This user is from outside of this forum
        A This user is from outside of this forum
        [email protected]
        wrote last edited by
        #133

        MDN isn't a very random place?

        N 1 Reply Last reply
        1
        • A [email protected]

          MDN isn't a very random place?

          N This user is from outside of this forum
          N This user is from outside of this forum
          [email protected]
          wrote last edited by
          #134

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

          1 Reply Last reply
          0
          • T [email protected]
            This post did not contain any content.
            L This user is from outside of this forum
            L This user is from outside of this forum
            [email protected]
            wrote last edited by
            #135

            So much better than I thought it would be! Thank you for making the world a better & more informed place

            1 Reply Last reply
            1
            • N [email protected]

              I'm not sure I blame the sites. The spec is so complex that it's not even possible to know which regex to use

              B This user is from outside of this forum
              B This user is from outside of this forum
              [email protected]
              wrote last edited by [email protected]
              #136

              The spec is so complex that it’s not even possible to know which regex to use

              Yes. Almost like a regex is not the correct tool to use, and instead they should use a well-tested library function to validate email addresses.

              N 1 Reply Last reply
              1
              • iavicenna@lemmy.worldI [email protected]

                13/21, seems like I am not significantly different from random guessing

                U This user is from outside of this forum
                U This user is from outside of this forum
                [email protected]
                wrote last edited by
                #137

                I got 11.
                The spaces and quotes caught me.

                1 Reply Last reply
                0
                • N [email protected]

                  I'm not sure I blame the sites. The spec is so complex that it's not even possible to know which regex to use

                  U This user is from outside of this forum
                  U This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #138

                  I have a feeling, the ones codapine is stating, didn't even care to half-read the spec and just went with what they knew from experience.
                  Maybe they didn't even know there was a spec.
                  Maybe they asked ChatGPT for the regex.

                  1 Reply Last reply
                  0
                  • I [email protected]

                    No. The number of users who have a real email with no TLD is far less than the number of users who will accidentally type an email with no TLD if you don’t validate on the front end.

                    I’m here to help 99.9% of users sign up correctly, not to be completely spec-compliant for the 0.1% who think they’re special.

                    U This user is from outside of this forum
                    U This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #139

                    Guess my mail@IPv6 won't be accepted because I was too poor to pay for a domain name after having paid for a static IPv6.

                    1 Reply Last reply
                    0
                    • B [email protected]

                      The spec is so complex that it’s not even possible to know which regex to use

                      Yes. Almost like a regex is not the correct tool to use, and instead they should use a well-tested library function to validate email addresses.

                      N This user is from outside of this forum
                      N This user is from outside of this forum
                      [email protected]
                      wrote last edited by [email protected]
                      #140

                      Exactly! But its not obvios. So most of those shitty websites don't even know they have a problem.

                      Then there are also people ignoring it on purpose. I once read a reddit comment saying 'well of your address looks like "John wick 🐶❤️"@2001:0db8:85a3:0000:0000:8a2e:0370:7334 I don't event want your email in my DB because oit will break something

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups