RFC

Detects Mexican RFC (Registro Federal de Contribuyentes) taxpayer identifiers in both official formats: the 13-character natural-person form (4-letter name stem + 6-digit date + 3-character homoclave) and the 12-character legal-entity form (3-character name stem, which may include Ñ or &, + 6-digit date + 3-character homoclave).

Type
regex
Engine
universal
Confidence
low
Confidence justification
Low confidence: generic pattern format that may match unrelated data. Corroborative evidence keywords are essential for reliable detection. Added context gating and exclusion rules improve precision and reduce incidental matches.
Detection quality
Verified
Jurisdictions
mx
Regulations
LFPDPPP (MX)
Frameworks
ISO 27001, ISO 27701
Data categories
pii, government-id
Scope
wide
Risk rating
5
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported

Pattern

\b(?:[A-Z]{4}|[A-Z&Ñ]{3})\d{6}[A-Z0-9]{3}\b

Corroborative evidence keywords

identifier, number, ID, ID number, identification, ID card, license, permit, registration, certificate, transaction, transfer, payment, deposit, withdrawal, debit, credit, data record, database record, record set (+20 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

Collections