extract_url_tail(url)
Extracts the URL tail from a <url>.
CREATE OR REPLACE FUNCTION `justfunctions.eu.extract_url_tail`(`url` STRING)
RETURNS STRING AS (SPLIT(url,'?')[SAFE_OFFSET(1)])
OPTIONS ( description = '''Extracts the URL tail from a <url>.''')
Example
SELECT `justfunctions.eu.extract_url_tail`("https://hey.com/me/?parameter=1")
parameter=1