piighost/eu-vat
European VAT number in its purely numeric form: a two-letter country code then eight to twelve digits. Member states whose number carries letters, such as Ireland or the Netherlands, are not covered. It overlaps with any code written as two letters and digits, an IBAN prefix included.
Label: EU_VAT
Pattern \b[A-Z]{2}\d{8,12}\b
Must be caught VAT FR12345678901 on the invoice. → FR12345678901Intra-community number DE123456789 → DE123456789
Must be left alone
Tags: eu, business, finance, accounting
Download the detector as TOML
Used by
piighost/business — Company and tax numbers across the countries the registry covers: the British VAT number, the European VAT number, the…
piighost/eu-extended — What a European document carries regardless of its country: the IBAN, the BIC, and the intra-community VAT number.
Related patterns
piighost/au-abn — Australian business number: eleven digits written in groups of two then three, three, three.
piighost/br-cnpj — Brazilian company number CNPJ in its masked form.
piighost/btc-address — Bitcoin address in the three live encodings: legacy P2PKH starting with 1, P2SH starting with 3, both over the Base58…
piighost/credit-card — Payment card number: 13 to 19 digits, each optionally followed by a space or a hyphen.
piighost/es-nif-cif — Spanish company tax number (CIF): an entity-type letter, seven digits, then a check character.
piighost/eth-address — Ethereum and EVM chain account address: 0x then forty hex characters.
← piighost/eu-extended · All patterns in the catalogue · piighost/fi →