extract_url_domain(url)
Extracts the domain from a <url>.
CREATE OR REPLACE FUNCTION `justfunctions.eu.extract_url_domain`(`url` STRING)
RETURNS STRING AS (NET.REG_DOMAIN(url))
OPTIONS ( description = '''Extracts the domain from a <url>.''')
Example
SELECT `justfunctions.eu.extract_url_domain`("https://hey.com/me/?231#213")
hey.com