Test, validate and match regular expressions
This regex matches URLs and domain names, with or without the HTTP/HTTPS protocol scheme. It captures subdomains, domain names, and top-level domains (TLDs), and optionally matches a port number between 1 and 5 digits. It is useful for extracting website links or validating domain strings from large bodies of text.