Spain Tax Identification Number

Detects Spain Tax Identification Number patterns. This pattern is based on a Microsoft Purview built-in sensitive information type. Due to the numeric format, corroborative evidence keywords are essential for reliable detection.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: eight digits followed by a single letter is a distinctive format for Spanish NIF/DNI numbers.
Detection quality
Verified
Jurisdictions
es, eu
Regulations
GDPR
Data categories
pii, financial, government-id
Scope
narrow
Risk rating
7
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Compatible

Pattern

\b\d{8}[A-Z]\b

Corroborative evidence keywords

NIF, número de identificación fiscal, DNI, CIF, Hacienda, tax identification, TIN, tax identification number, tax number, tax return, IRD, tax ID, inland revenue, taxpayer identification, αριθμός φορολογικού μητρώου, ΑΦΜ, φορολογικός, Abgabenkontonummer, adóazonosító, adószám (+20 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

References