I also reached out to them on Twitter but they directed me to this form. I followed up with them on Twitter with what happened in this screenshot but they are now ignoring me.

  • CosmicTurtle@lemmy.world
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    2
    ·
    10 months ago

    The only correct regex for email is: .+@.+

    So long as the address has a local part, the at sign, and a hostname, it’s a valid email address.

    Whether it goes somewhere is the tricky part.

      • laurelraven@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        6
        ·
        10 months ago

        And this right here is a great example of why simple basic RegEx is rarely adequate

        At the very least, should be something like

        ^[^@\s]+@([^@\s.]+\.)+[^@\s.]+$

        I’m like 99% sure I missed at least a few cases there, and will say “please don’t use this for anything production”

        • jpeps@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          10 months ago

          Here’s two: you can have multiple @s forming relays in an email address, and you can also break all the rules around dots and spaces if you put quotes around the local part, eg ".sarah.."@emails.com

    • xantoxis@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      10 months ago

      Sorry, this is not a correct regex for an email address.

      Sending using mail on a local unix system? You only need the local part.

      STOP VALIDATING NAMES AND EMAIL ADDRESSES. Send a verification email. Full stop. Don’t do anything else. You really want to do this anyway, because it’s a defense against bots.