Test, validate and match regular expressions
Parses a full HTTP/HTTPS URL into its component parts: an optional protocol scheme (http or https), the hostname, an optional port number, path segments, the resource path, an optional query string, and an optional fragment identifier. Each component is captured in its own group, making it useful for extracting structured URL data or validating URL structure in Python. It's commonly used for link validation, URL rewriting, or breaking down URLs in web scraping tasks.