identity.person.emailStandard email address (RFC 5322 simplified). Format: local@domain. Universal format but may include internationalized domain names (IDN).
$ finetype infer -i "[email protected]"
→ identity.person.emailSELECT finetype('[email protected]');
-- → 'identity.person.email'LOWER(CAST({col} AS VARCHAR))-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'identity.person.email';domain: REGEXP_EXTRACT({col}, '@(.+)$')
local: REGEXP_EXTRACT({col}, '^([^@]+)'){
"$id": "https://meridian.online/schemas/identity.person.email",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Standard email address (RFC 5322 simplified). Format: local@domain. Universal format but may include internationalized domain names (IDN).",
"examples": [
"[email protected]",
"[email protected]",
"[email protected]"
],
"maxLength": 254,
"minLength": 5,
"pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$",
"title": "Email Address",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "LOWER(CAST({col} AS VARCHAR))"
}