Example 1
Input
https://example.com/path/to/page?utm_source=test&x=1&x=2#section
Output
Split a URL into protocol, host, path, query, and hash.
Alcuni strumenti funzionano nel browser. Alcune funzioni possono richiedere elaborazione server.
https://example.com/path/to/page?utm_source=test&x=1&x=2#section
/relative/path?query=1