Test, validate and match regular expressions
This regex identifies components of a URL that are typically removed when extracting a domain name. It matches the protocol part (http://), the www. prefix, and the TLD extension (.com) separately when used with the global flag. Useful for domain extraction from URLs in web analytics, data processing, or content filtering scenarios.