piighost/mx-rfc
Mexican RFC tax number, three letters for a company or four for a person, then the date of registration or birth, then three characters of homoclave. It is the number an invoice carries, so it turns up in accounting exports far more often than the CURP does.
Label: MX_RFC
Pattern (?<!\w)[A-Z]{3,4}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[A-Z0-9]{3}(?!\w)
Must be caught Factura a nombre de GOMC900101AB3 por favor. → GOMC900101AB3El RFC de la empresa es ABC850715J21 desde 2010. → ABC850715J21
Must be left alone La clave GOMC901301AB3 no tiene ese mesFolio GO900101AB3
Tags: mx, government-id, business
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/mx — Mexico: phone, the CURP population identifier and the RFC 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/mx-phone · All patterns in the catalogue · piighost/network →