piighost/br-cpf

Brazilian CPF taxpayer number in its punctuated form. The punctuation is required, and that requirement is what makes the pattern usable at all: an unpunctuated CPF is eleven bare digits and is missed by design. Both examples are the checksum-valid values that circulate in Brazilian developer documentation as test CPFs. Do not relax the punctuation: a bare eleven digit run collides head on with the existing de-phone whenever it starts with a zero.

Label: BR_CPF

Pattern

\b\d{3}\.\d{3}\.\d{3}-\d{2}\b

Must be caught

Must be left alone

Tags: br, government-id, identity

Download the detector as TOML