Build, test, and debug regular expressions
This regular expression validates and extracts HTTP and HTTPS URLs that may optionally include a protocol or the 'www.' subdomain. It matches a domain name containing alphanumeric characters, followed by a 2 to 6 character top-level domain (TLD) and an optional path or query string. With the global and multiline flags enabled, it is highly effective for parsing and validating multiple URLs within a larger body of text.