EU VAT Identification Number - All Member States

Detects EU VAT identification numbers for all 27 member states in a single consolidated pattern, built branch-by-branch from the per-country structures published in the European Commission VIES FAQ (Q11). Covers the Greek quirk (Greece prefixes with EL, not GR) and Northern Ireland's XI prefix, which remains checkable in VIES for goods traders under the Windsor Framework — XI is included with the UK 9-digit, 12-digit and GD/HA government/health-authority forms; plain GB numbers are NOT included because Great Britain left the VIES scheme after Brexit. This pattern is a superset alongside the existing per-country detectors (at/be/de/fr/hu/it-vat-number), which stay untouched for deployed-GUID stability — the same document may fire both, following the global-iban / eu-iban precedent.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: every branch requires the exact two-letter member-state prefix followed by that state's verified digit/letter structure, which is distinctive in business documents; this matches the confidence of the existing per-country VAT detectors. The short Romanian branch (RO + 2-10 digits, no leading zero) is the loosest row and is the main reason the bare structural tier stays discovery-only.
Jurisdictions
eu
Regulations
GDPR, VAT Directive 2006/112/EC
Frameworks
ISO 27001, ISO 27701, SOC 2
Data categories
financial, business-identifier
Scope
narrow
Risk rating
5
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported

Pattern

\b(?:ATU\d{8}|BE[01]\d{9}|BG\d{9,10}|CY\d{8}[A-Z]|CZ\d{8,10}|DE\d{9}|DK\d{8}|EE\d{9}|EL\d{9}|ES(?:[A-Z]\d{8}|\d{8}[A-Z]|[A-Z]\d{7}[A-Z])|FI\d{8}|FR[A-HJ-NP-Z0-9]{2}\d{9}|HR\d{11}|HU\d{8}|IE(?:\d{7}[A-Z]{1,2}|\d[A-Z+*]\d{5}[A-Z])|IT\d{11}|LT\d{9}(?:\d{3})?|LU\d{8}|LV\d{11}|MT\d{8}|NL[A-Z0-9+*]{9}B\d{2}|PL\d{10}|PT\d{9}|RO[1-9]\d{1,9}|SE\d{12}|SI\d{8}|SK\d{10}|XI(?:\d{9}(?:\d{3})?|GD[0-4]\d{2}|HA[5-9]\d{2}))\b

Corroborative evidence keywords

VAT number, VAT identification, VAT registration, value added tax, VIES, intra-community, [object Object], belasting, [object Object], Mehrwertsteuer, [object Object], Umsatzsteuer, BTW-nummer, numéro de TVA, Steuernummer, tax number, tax registration, taxe sur la valeur ajoutée, adószám, imposta sul valore aggiunto (+37 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

References