Skip to content

Email Address

Type Registry

Email Address

identity.person.email

Standard email address (RFC 5322 simplified). Format: local@domain. Universal format but may include internationalized domain names (IDN).

Domain identityperson
Casts to VARCHAR
Scope Universal

Try it

CLI
$ finetype infer -i "[email protected]"
→ identity.person.email

DuckDB

Detect
SELECT finetype('[email protected]');
-- → 'identity.person.email'
Cast expression
LOWER(CAST({col} AS VARCHAR))
Safe cast pipeline
-- 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';

Struct Expansion

domain: REGEXP_EXTRACT({col}, '@(.+)$')
local: REGEXP_EXTRACT({col}, '^([^@]+)')

JSON Schema

finetype schema identity.person.email
{
  "$id": "https://noon.sh/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"
}

Examples

Also known as

email_address

Types in identity