Build, test, and debug regular expressions
Matches URLs with an optional http:// or https:// protocol, an optional 'www.' prefix, and a domain name composed of letters, digits, dots, or hyphens. It requires either a TLD of 2-6 letters (supporting multi-part TLDs like .co.uk) or a port number after a colon, followed by an optional slash and any path/query content. With global, multiline, and case-insensitive flags, it is well suited for extracting or validating URLs line-by-line from large text bodies.