Test, validate and match regular expressions
This regular expression is designed to match domain names and URLs, including optional HTTP/HTTPS protocols and 'www.' subdomains. It specifically targets top-level domains (TLDs) that start with specific letters (such as c, n, o, i, e, g, m) and are followed by one or two additional letters. It also optionally captures URL paths containing non-whitespace characters. This pattern is useful for extracting or validating simple web addresses in text.