Build, test, and debug regular expressions
This PCRE regex matches protocol-relative URLs or URLs with an explicit http/https scheme, provided they end with a dot followed by non-slash characters. It captures the optional scheme in the first group and the remainder of the URL (starting with '//') in the second. It is particularly useful for parsing URLs that lack a trailing slash or end with a specific file extension or top-level domain.