piighost/email
Email address, simplified RFC 5322. The lookbehind pins the start of the local part and the domain is segmented label by label, which keeps the scan linear. Latin letters with diacritics (U+00C0 to U+024F) belong to the local part and the domain labels, so an accented address is matched whole instead of from its first ASCII run.
Label: EMAIL
Pattern (?<![A-Za-z0-9À-ɏ._%+-])[A-Za-z0-9À-ɏ._%+-]+@(?:[A-Za-z0-9À-ɏ-]+\.)+[A-Za-z]{2,}
Must be caught Write to john.doe@example.com for any question. → john.doe@example.comContact : support+billing@mail.example.org → support+billing@mail.example.orgRépondre à expéditeur@example.fr avant lundi. → expéditeur@example.fr
Must be left alone
Tags: international, contact
Download the detector as TOML
Used by
piighost/contact — How to reach a person, without knowing where they live: email, international phone, URL.
piighost/generic — Country-agnostic shapes: email, URL, IPv4, card number.
piighost/logs — What a server log or a traceback carries: addresses, machine identifiers, and the credentials that end up in them by…
Related patterns
piighost/anthropic-api-key — Anthropic API key: the sk-ant-api user prefix and the sk-ant-admin admin prefix, the two version digits left open so a…
piighost/ar-phone — Argentine phone number, the +54 country code or the 0 trunk prefix then ten or eleven digits.
piighost/ar-postal — Argentine CPA postal code: a province letter, four digits for the town, then three letters for the block side.
piighost/at-phone — Austrian phone number, the +43 country code or the 0 trunk prefix then six to thirteen digits, since Austrian…
piighost/au-phone — Australian phone number: the +61 or leading 0 prefix, a single area or service digit, then eight digits.
piighost/au-postal — Australian postal code, anchored on the state or territory abbreviation that precedes it in an address.
← piighost/driving-licences · All patterns in the catalogue · piighost/es →