URL Hostname
Extract host and port.
Extracts hostname and port from a URL or host-like string. Unlike Parse URL this focuses on host/port. Unlike Host Port Split this accepts full URLs. Bad input fails.
Host: example.com
Port: 8080
Protocol: https
Href: https://user:pass@example.com:8080/x