piighost/au-driving-licence

Australian driver licence number. Each state and territory sets its own, and Purview lists seven layouts; only the three that mix letters and digits are covered, two letters then four digits, one letter then five digits, and four digits then two letters. The numeric only layouts, six to ten digits with or without spaces, are left out because they are indistinguishable from any other number and would swamp the label. Even so this shape is short, six characters, so product codes, seat numbers and vehicle plates will match; treat it as a context dependent signal. Reproduced collision: the four digits then two letters form, 1234XY, is matched whole by NL_POSTAL, and the five digit run inside C12345 is separately matched by ES_POSTAL and IT_CAP.

Label: AU_DRIVING_LICENCE

Pattern

(?<!\w)(?:[A-Z]{2}\d{4}|[A-Z]\d{5}|\d{4}[A-Z]{2})(?!\w)

Must be caught

Must be left alone

Tags: au, government-id, identity

Download the detector as TOML