piighost/fr-siren

French company identifier, nine digits in groups of three. The lookahead is what makes it composable: a SIRET is a SIREN followed by five more digits, and without it the shorter SIREN wins the shared start and shreds every SIRET. Declare fr-siret first all the same, so an establishment number is read as one.

Label: FR_SIREN

Pattern

\b\d{3}[\s-]?\d{3}[\s-]?\d{3}\b(?![\s-]?\d)

Must be caught

Must be left alone

Tags: fr, business, accounting, finance

Download the detector as TOML