SELECT `justfunctions.eu.clean_special_symbols`("Vacation✈️ time!🌴😀🏖️")
/*--Output--
vacation time
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.clean_special_symbols`(`string` string)
RETURNS string AS (REGEXP_REPLACE(string, '''[^\\p{L}\\p{N}\\s]+''', ''))
OPTIONS ( description = '''Cleans special symbols in a <string> using custom symbols.''')
SQL User Defined Function (SQL UDF)
See something wrong? Contact us or report an issue on Github.