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

Must be left alone

Tags: fr, government-id, health, healthcare, hr

Download the detector as TOML