REGEXVAULT

Identity & PII

Validate and detect personally identifiable information: email addresses, national identity numbers, passports, driver's licenses, health and financial identifiers, and more. Patterns audited for ReDoS safety so you can handle sensitive data with confidence.

58 patterns
Email Address|

Email Address (RFC 5321 Practical)

Matches a practical email address: local part + @ + domain. Balances RFC compliance with real-world usage.

complex4 engines
Email Address|

Email Local Part Only

Matches only the local part of an email address (before the @), with common character set.

complex4 engines
Email Address|

Email Domain Part Only

Matches only the domain part of an email address (after the @).

complex4 engines
Email Address|

Disposable / Temporary Email Domain Detection

Matches common disposable email service domains used to create throwaway addresses.

complex4 engines
Email Address|

Gmail Address with Canonical Normalization

Matches and captures Gmail addresses in a form suitable for canonical normalization (ignoring dots and + tags).

moderate3 engines
National Identity Numbers|

Singapore NRIC / FIN Number

Matches a Singapore National Registration Identity Card (NRIC) or Foreign Identification Number (FIN).

simple4 engines
National Identity Numbers|

UK National Insurance Number (NI)

Matches a UK NI number: two letters, six digits, one suffix letter A-D.

complex3 engines
National Identity Numbers|

Malaysian IC Number (MyKad / NRIC)

Matches a Malaysian national ID number (MyKad): YYMMDD-SS-NNNN format.

moderate4 engines
National Identity Numbers|

Hong Kong HKID Number

Matches a Hong Kong Identity Card number: 1-2 letters + 6 digits + 1 check character in parentheses.

moderate4 engines
National Identity Numbers|

South Korean Resident Registration Number (RRN)

Matches a South Korean Resident Registration Number: YYMMDD-SNNNNNC format.

moderate4 engines
National Identity Numbers|

Chinese Citizen ID Number (Shenfenzheng)

Matches a Chinese national ID number (二代身份证): 17 digits + 1 check character (0-9 or X).

complex4 engines
National Identity Numbers|

Indian Aadhaar Number

Matches an Indian Aadhaar UID: 12 digits, first digit not 0 or 1, optionally space/hyphen separated.

moderate4 engines
National Identity Numbers|

Thai National ID (บัตรประชาชน)

Matches a Thai national identification number: exactly 13 digits with Luhn-like checksum.

simple4 engines
National Identity Numbers|

Indonesian KTP (Kartu Tanda Penduduk) NIK

Matches an Indonesian National Identity Card (KTP) number: 16 digits.

complex4 engines
National Identity Numbers|

South African ID Number

Matches a South African ID number: 13 digits encoding DOB, gender, citizenship, and a checksum.

complex4 engines
National Identity Numbers|

Brazilian CPF (Cadastro de Pessoas Físicas)

Matches a Brazilian individual taxpayer registry number (CPF): 11 digits or XXX.XXX.XXX-XX formatted.

complex4 engines
National Identity Numbers|

Brazilian CNPJ (Cadastro Nacional da Pessoa Jurídica)

Matches a Brazilian company registry number (CNPJ): 14 digits or XX.XXX.XXX/XXXX-XX formatted.

moderate4 engines
Passport Numbers|

ICAO Machine-Readable Zone Line 1 (MRZ)

Matches the first line of an ICAO 9303 Machine-Readable Zone (MRZ) for a passport.

moderate4 engines
Passport Numbers|

ICAO MRZ Line 2 (Passport Data Line)

Matches the second line of an ICAO 9303 Machine-Readable Zone (MRZ) for a passport.

complex4 engines
Passport Numbers|

US Passport Number

Matches a US passport number: 9 alphanumeric characters (letter + 8 digits for books, or 9 chars for cards).

moderate4 engines
Passport Numbers|

UK Passport Number

Matches a UK passport number: 9 numeric digits.

simple4 engines
Passport Numbers|

Indian Passport Number

Matches an Indian passport number: 1 uppercase letter + 7 digits.

moderate4 engines
Passport Numbers|

Schengen / EU Passport Number (Generic)

Matches a generic EU/Schengen area passport number format — most are alphanumeric, 8-9 characters.

simple4 engines
Health Identifiers|

US National Provider Identifier (NPI)

Matches a US NPI number: exactly 10 digits, with Luhn check digit.

simple4 engines
Health Identifiers|

UK NHS Number

Matches a UK NHS number: 10 digits, optionally formatted as XXX XXX XXXX or XXX-XXX-XXXX.

moderate4 engines
Health Identifiers|

Australian Medicare Number

Matches an Australian Medicare card number: 10 digits + optional IRN (1 digit).

moderate4 engines
Health Identifiers|

Australian Individual Healthcare Identifier (IHI)

Matches an Australian IHI: 16 digits starting with 800 36.

simple4 engines
Health Identifiers|

US DEA Number (Drug Enforcement Administration)

Matches a US DEA registration number for prescribers: 2 letters + 7 digits with checksum.

moderate4 engines
Health Identifiers|

EU European Health Insurance Card (EHIC) Number

Matches an EHIC personal identification number (PIC) — country-specific but follows a general alphanumeric format.

simple4 engines
Health Identifiers|

Singapore NRIC (used as health ID)

Same format as the general NRIC — included here as Singapore uses the NRIC as its primary health identifier (SingPass / HealthHub).

simple4 engines
Driver's License Numbers|

US Driver's License (Generic, State-Dependent)

Matches common US driver's license formats: alphanumeric, 1-18 characters.

moderate4 engines
Driver's License Numbers|

UK DVLA Driver's License Number

Matches a UK driving licence number: encodes surname, DOB, gender, and initials.

moderate3 engines
Driver's License Numbers|

Australian Driver's Licence Number

Matches an Australian driver's licence number: format varies by state, generally 6-9 alphanumeric characters.

simple4 engines
Driver's License Numbers|

Singapore Driving Licence Number

Matches a Singapore driving licence number: S + 7 digits + 1 check letter, similar to NRIC.

simple4 engines
Digital Identity|

IMEI Number (Mobile Device)

Matches an IMEI (International Mobile Equipment Identity): exactly 15 digits.

simple4 engines
Digital Identity|

ICCID (SIM Card Serial Number)

Matches an ICCID (Integrated Circuit Card Identifier): 18-22 digits identifying a SIM card.

simple4 engines
Digital Identity|

IPv4 Address (as PII identifier)

Matches an IPv4 address in dot-decimal notation — included as PII because IP addresses are personal data under GDPR.

complex4 engines
Digital Identity|

OAuth / OpenID Connect Sub Claim

Matches an OAuth 2.0 / OIDC subject identifier: alphanumeric string, typically UUID or opaque token.

simple4 engines
Digital Identity|

Browser Fingerprint Hash

Matches a browser fingerprint hash: typically MD5 or SHA-256 hex string.

simple4 engines
Digital Identity|

Apple IDFA / Google GAID (Advertising ID)

Matches a mobile advertising identifier in UUID v4 format (both IDFA and GAID use this format).

moderate4 engines
Biometric & Physical|

Blood Type / Blood Group

Matches a human ABO blood group with Rh factor.

simple4 engines
Biometric & Physical|

Height (Metric and Imperial)

Matches a height measurement in cm (metric) or feet/inches (imperial).

complex4 engines
Biometric & Physical|

Body Mass Index (BMI)

Matches a BMI value: numeric, 10.0-70.0 range covering all recorded human values.

moderate4 engines
Biometric & Physical|

Gender Marker (Medical / Governmental)

Matches common gender or sex marker codes used in official documents and health records.

complex4 engines
Biometric & Physical|

Fingerprint Quality Score (NIST NFIQ)

Matches an NFIQ2 fingerprint quality score: integer 0-100.

simple4 engines
Biometric & Physical|

Eye Color (Standardized)

Matches standardized eye color codes used in legal documents and forensic contexts.

moderate4 engines
Biometric & Physical|

Hair Color (AAMVA Standardized)

Matches AAMVA standardized hair color codes used on US driver's licences.

moderate4 engines
Financial PII|

US Social Security Number (SSN) — PII context

Matches a US SSN in PII context: XXX-XX-XXXX format, excluding known-invalid ranges.

complex3 engines
Financial PII|

Credit Card Number with Network Detection

Matches a payment card number and captures the card network via the IIN/BIN prefix.

complex3 engines
Financial PII|

Bank Account Number (Generic Sensitive)

Matches a generic bank account number: 6-18 digits (covers most countries' domestic account numbers).

simple4 engines
Location PII|

GPS Coordinates (Decimal Degrees — High Precision)

Matches GPS coordinates in decimal degrees format with high precision — potential home address data.

complex4 engines
Location PII|

Street Address (US Format)

Matches a US-style street address: number + optional unit + street name + street type.

complex3 engines
Location PII|

What3Words Address

Matches a What3Words address: three lowercase English words separated by dots.

simple4 engines
Professional Identity|

Professional License Number (US, Generic)

Matches a generic professional license number: 2-char state code + alphanumeric license number.

simple4 engines
Professional Identity|

Bar Admission Number (Attorney)

Matches a US state bar admission number: numeric or alphanumeric, 4-10 characters.

simple4 engines
Consent & Compliance|

GDPR Consent Record ID

Matches a GDPR consent record identifier: UUID v4 format.

moderate4 engines
Consent & Compliance|

Data Subject Request (DSR) Reference Number

Matches a Data Subject Request (DSAR/DSR) reference number in common formats.

moderate4 engines
Consent & Compliance|

Privacy Policy Version Identifier

Matches a privacy policy or terms version in semantic versioning format.

complex4 engines