SELECT `justfunctions.eu.extract_url_suffix`("https://en.hey.com/me/?231#213")
/*--Output--
com
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.extract_url_suffix`(`url` STRING)
RETURNS STRING AS (NET.PUBLIC_SUFFIX(url))
OPTIONS ( description = '''Extracts the URL suffix from a <url>.''')
SQL User Defined Function (SQL UDF)
See something wrong? Contact us or report an issue on Github.