SELECT `justfunctions.eu.clean_email`("[email protected]")
/*--Output--
[email protected]
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.clean_email`(`email` STRING)
RETURNS STRING AS (LOWER(your_project_id.your_dataset_id.remove_email_plus_address(email)))
OPTIONS ( description = '''Converts an <email> address to lowercase and removes any sub-address (also known as plus addressing).''')
SQL User Defined Function (SQL UDF)
See something wrong? Contact us or report an issue on Github.