Test, validate and match regular expressions
Matches URLs with an optional http/https protocol and 'www.' prefix, followed by a lowercase alphanumeric domain name and 1-3 dot-separated TLD segments (e.g., .com, .co.uk). It also captures optional path segments (with hash or slash), an optional trailing slash, and a single optional query string parameter (key=value). Commonly used for basic URL validation or extraction from text, though it only handles one query parameter and lowercase domains.