piighost/es-driving-licence

Spanish permiso de conducir number: eight digits then one digit or letter, per the Purview Spain driver licence definition. The number is the holder DNI, which is why this shape is not independent. Reproduced collision: both examples are matched whole by ES_DNI_NIE as well, so every hit here is also a DNI hit and the two labels should be read as the same underlying value seen through two lenses. The final character is the DNI check letter but nothing is verified, the match is on shape alone.

Label: ES_DRIVING_LICENCE

Pattern

(?<!\w)\d{8}[0-9A-Z](?!\w)

Must be caught

Must be left alone

Tags: es, government-id, identity

Download the detector as TOML