Skip to content

Extracts a specified part from a URL string.

func.parse_url(<url>, <part>)
func.parse_url('https://example.com/path?q=1', 'HOST')
┌───────────────┐
│ 'example.com' │
└───────────────┘
PARSE_URL(<url>, <part>)
SELECT PARSE_URL('https://example.com/path?q=1', 'HOST');
┌─────────────┐
│ example.com │
└─────────────┘