piighost/cl-rut

Chilean national identity number, the RUT or RUN: seven or eight digits, optionally grouped with periods, then a hyphen and one check character which is a digit or the letter K. Purview documents exactly that layout for the Chile identity card, and Cloudflare publishes 12.345.678-5 as its sample. The check character is not verified. Reproduced collisions: the dotted form 12.345.678-5 is matched whole by PL_PHONE, which accepts periods and hyphens between its nine digits, and the plain form 76543210-K is matched whole by ES_DNI_NIE, which reads eight digits, an optional hyphen and a letter.

Label: CL_RUT

Pattern

(?<!\w)\d{1,2}\.?\d{3}\.?\d{3}-[0-9kK](?!\w)

Must be caught

Must be left alone

Tags: cl, government-id, identity

Download the detector as TOML