Mexico Passport Number
Detects Mexican passport numbers issued by the Secretaría de Relaciones Exteriores (SRE). Older passports use a single letter followed by 7-8 digits; newer books carry an 8-9 character alphanumeric serial. Because the format is short and loosely structured, corroborative keyword proximity is strongly recommended to reduce false positives.
- Type
- regex
- Engine
- boost_regex
- Confidence
- medium
- Confidence justification
- Medium confidence: the alphanumeric body is only 8-9 characters and lacks a fixed prefix, so the pattern can match unrelated reference codes and serial numbers. Corroborative passport keywords within 300 characters are essential for reliable detection.
- Jurisdictions
- mx
- Regulations
- LFPDPPP, CCPA/CPRA
- Frameworks
- ISO 27001, ISO 27701
- Data categories
- pii, government-id
- Scope
- narrow
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?<![A-Za-z0-9])(?:[A-Za-z][0-9]{7,8}|(?=[A-Za-z0-9]*[A-Za-z])(?=[A-Za-z0-9]*[0-9])[A-Za-z0-9]{8,9})(?![A-Za-z0-9])
Corroborative evidence keywords
passport, passport number, pasaporte, número de pasaporte, mexican passport, travel document, SRE, Relaciones Exteriores
Proximity: 300 characters
Should match
G20693408— Older Mexican passport, letter + 8 digitsPasaporte: J0000001— Older format, letter + 7 digits, labelled in Spanish12AB3456C— Newer 9-character alphanumeric passport serial
Should not match
123456789— All-digit string with no letter is not a Mexican passport serialABCDEFGHI— All-letter string with no digit is not a Mexican passport serialtraiga su pasaporte mexicano vigente a la cita— Prose mention of a Mexican passport without an actual number
Known false positives
- Alphanumeric reference codes, order IDs and serial numbers of 8-9 characters that mix letters and digits. Mitigation: Require corroborative passport keywords (passport, pasaporte, SRE) within 300 characters.