Test, validate and match regular expressions
This regular expression matches URLs that do not end with a trailing slash. It optionally matches the HTTP or HTTPS protocol and the 'www' subdomain, followed by a domain name, a top-level domain (like .com or generic 2-6 letter TLDs), and an optional path or query string. It is useful for validating or extracting URLs from text while strictly ensuring the last character is not a slash, space, or pipe.