• whoareu@lemmy.caOP
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      5 months ago

      If we want to include every protocol then the RE could be complex.

      • lad
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 months ago

        Depending on the use-case it maybe should. On the other hand, some things are better left to library implementations rather than custom regex, e.g. email validation