clean_special_symbols(string)
Cleans special symbols in a <string> using custom symbols.
CREATE OR REPLACE FUNCTION `justfunctions.eu.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.''')
Example
SELECT `justfunctions.eu.clean_special_symbols`("Vacation✈️ time!🌴😀🏖️")
vacation time