SELECT `justfunctions.eu.extract_url_tail`("https://hey.com/me/?parameter=1")
/*--Output--
parameter=1
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.extract_url_tail`(`url` STRING)
RETURNS STRING AS (SPLIT(url,'?')[SAFE_OFFSET(1)])
OPTIONS ( description = '''Extracts the URL tail from a <url>.''')
SQL User Defined Function (SQL UDF)
See something wrong? Contact us or report an issue on Github.