• whoareuOP
      link
      fedilink
      33 months ago

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

      I am kinda learning RE right now 😅

        • whoareuOP
          link
          fedilink
          13 months ago

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

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