piighost/br-cns
Brazilian national health card number, fifteen digits opening on a 1, 2, 7, 8 or 9 as the issuing rule requires. Written in groups of four on the card itself, and the separators are optional because the systems that export it often strip them.
Label: BR_CNS
Pattern (?<!\w)[12789]\d{2}[\s.-]?\d{4}[\s.-]?\d{4}[\s.-]?\d{4}(?!\w)
Must be caught O CNS do paciente e 123 4567 8901 2345 no cadastro. → 123 4567 8901 2345Anote 898001234567890 na ficha. → 898001234567890
Must be left alone O numero 323 4567 8901 2345 nao comeca certoCodigo 123 4567 8901
Tags: br, health, government-id
Download the detector as TOML
Used by
piighost/br — Brazil: phone, CEP postal code, the CPF for a person, the CNPJ for a company and the CNS health card 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/br-cnpj · All patterns in the catalogue · piighost/br-cpf →