piighost/de-driving-licence

German Fuehrerscheinnummer in the EU card format used since 2013, eleven characters in field five. The two sources disagree on the layout, so both are covered: Presidio reads it as two authority letters, eight digits and one check character, while Purview reads it as one letter or digit, two digits, six letters or digits, one digit and one letter or digit. The second branch accepts eleven bare digits. Reproduced collision: on 12345678901 the value is also matched whole by IT_PARTITA_IVA, by PL_PESEL and by US_PHONE, so an eleven digit run fires four labels at once and only context words separate them. The pattern is upper case only, unlike both vendor definitions which are case insensitive.

Label: DE_DRIVING_LICENCE

Pattern

(?<!\w)(?:[A-Z]{2}\d{8}[A-Z0-9]|[A-Z0-9]\d{2}[A-Z0-9]{6}\d[A-Z0-9])(?!\w)

Must be caught

Must be left alone

Tags: de, government-id, identity

Download the detector as TOML