piighost/us-driving-licence

United States driver licence number. There is no national format, every state issues its own, so this covers only the two common shapes that vendors actually implement: one letter followed by seven digits, the California style that Presidio and the Cloudflare sample CA License A1234567 both carry, and nine digits written as three spaced groups, which is the only state form Purview defines, for New York, and which Purview says does not match when written without the spaces. States that issue plain six to fourteen digit numbers are left out on purpose, since a bare digit run of that length carries no signal. Reproduced collision: the spaced form 123 456 789 is matched whole by CA_SIN and by PL_PHONE.

Label: US_DRIVING_LICENCE

Pattern

(?<!\w)(?:[A-Z]\d{7}|\d{3} \d{3} \d{3})(?!\w)

Must be caught

Must be left alone

Tags: us, government-id, identity

Download the detector as TOML