Test, validate and match regular expressions
Matches HTTP/HTTPS URLs beginning with the protocol (http:// or https://), followed by a domain with optional subdomains and a whitelisted TLD (common generic TLDs like .com, .org, .net plus two-letter country-code TLDs). Optionally captures a port number, path segment, and query string containing typical URL characters. Useful for extracting or validating web links in text, though newer gTLDs like .app or .xyz are not recognized.