piighost/es-nif-cif
Spanish company tax number (CIF): an entity-type letter, seven digits, then a check character. The leading letter set excludes the ones reserved for individuals, so it does not collide with the DNI.
Label: ES_NIF_CIF
Pattern (?<!\w)[ABCDEFGHJNPQRSUVW]\d{7}[0-9A-J](?!\w)
Must be caught CIF A58818501 en la factura. → A58818501Sociedad con B12345674 registrada. → B12345674
Must be left alone CIF Z58818501CIF A5881850
Tags: es, business, accounting, government-id
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/es — Spain: phone, postal code, the DNI and NIE identity numbers and the CIF company tax number.
Related patterns
piighost/ar-dni — Argentine national identity document number, the DNI: eight digits, written solid or with a period after the second…
piighost/at-svnr — Austrian social security number, the Sozialversicherungsnummer: ten digits, a three digit serial and one check digit,…
piighost/au-abn — Australian business number: eleven digits written in groups of two then three, three, three.
piighost/au-driving-licence — Australian driver licence number.
piighost/au-medicare — Australian Medicare number: ten digits in the groups the card prints, sometimes followed by the individual reference…
piighost/au-passport — Australian passport number, eight or nine characters, per the Purview Australia passport definition: one letter from…
← piighost/es-driving-licence · All patterns in the catalogue · piighost/es-passport →