piighost/es-passport

Spanish passport number, eight or nine characters: two or three letters followed by six digits. Presidio reads it as three letters and six digits, Purview as two or three letters or digits and six digits; the letter led reading is kept because allowing digits in the first positions would turn the pattern into a plain eight or nine digit run. Reproduced noise: the six digit tail is separately matched by IN_PIN, and the eight character form is the same shape as CA_PASSPORT and BR_PASSPORT, so those three labels fire together on a two letter value and only the surrounding language separates them.

Label: ES_PASSPORT

Pattern

(?<!\w)[A-Z]{2,3}\d{6}(?!\w)

Must be caught

Must be left alone

Tags: es, government-id, identity

Download the detector as TOML