• whoareuOP
      link
      fedilink
      36 months ago

      https?//[a-zA-Z0-9_-]*

      I am kinda learning RE right now 😅

        • whoareuOP
          link
          fedilink
          16 months ago

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

          • lad
            link
            fedilink
            English
            16 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