Test, validate and match regular expressions
This regex parses a URL into its component parts, capturing scheme, credentials (login/password), host, port, path, query string, and fragment. It handles various URL formats including those with authentication info and optional components. Commonly used for URL validation, routing, and component extraction in Python web applications.