• custom_situation@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    so, where’s the email address regex? that’s where this lives or dies. there is no reason to use this for extremely simple happy-path regexes.

    i’m having a tough time understanding who this is for. a beginner might think this is great, but they’re shooting themselves in the foot by adding an additional layer of abstraction rather than reading something to learn the basics.

    • TerrorBite :veripawed3:@meow.social
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I am of the opinion that regex for email address is a bad idea. The only two things that you need to check an email address are:

      Does the address contain an @ symbol?
      Is there a dot to the right of the @ symbol?

      Then just try to deliver to it, and let the MTA do the rest.

      Email addresses can be complicated, and there’s plenty of valid addresses that can be excluded by attempts at regex validation.

      @custom_situation @yoavlavi

      • custom_situation@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        i said “email” but what i meant was “show me a complicated example”. i don’t disagree with anything you said.