piighost/fr-nir
French social security number (NIR): sex, year, month, department, commune, order, key. Shape only, no checksum, so an OCR-mangled value is still caught.
Label: FR_NIR
Pattern \b[12][\s.-]?\d{2}[\s.-]?(?:0[1-9]|1[0-2])[\s.-]?(?:2A|2B|\d{2})[\s.-]?\d{3}[\s.-]?\d{3}[\s.-]?\d{2}\b
Must be caught NIR : 1 85 05 78 006 084 36. → 1 85 05 78 006 084 36Assuré n° 180057505600157 → 180057505600157Née en Corse : 2 90 12 2A 004 123 45 → 2 90 12 2A 004 123 45
Must be left alone 180137505600157SIRET 73282932000074
Tags: fr, government-id, health, healthcare, hr
Download the detector as TOML
Used by
piighost/fr — France: phone, IBAN, social security number and company registration number.
piighost/health — Health identifiers across nine countries: the Danish CPR number, the British NHS number, the French social security…
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-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/be-nrn — Belgian national register number in its written form: the birth date in dotted pairs, a dash, a three digit sequence…
← piighost/fr-iban · All patterns in the catalogue · piighost/fr-notarial →