piighost/de-passport

German Reisepassnummer, nine characters: eight from the ICAO Doc 9303 restricted set, which drops the visually ambiguous letters A, B, D, E, I, O, Q, S and U, then one digit that is the ICAO check digit. Taken from the Presidio German passport recognizer and its published sample C01X00T41; Purview describes the same run with an optional trailing check digit and an optional d, which are not matched here. The check digit is not verified, only its position. The restricted alphabet makes the shape reasonably selective and no registry label fired on the examples.

Label: DE_PASSPORT

Pattern

(?<!\w)[CFGHJKLMNPRTVWXYZ][CFGHJKLMNPRTVWXYZ0-9]{7}\d(?!\w)

Must be caught

Must be left alone

Tags: de, government-id, identity

Download the detector as TOML