UK Driving Licence Number

>- This pattern is based on a Microsoft Purview built-in sensitive information type. Users already running Purview may prefer to enable the built-in SIT directly, or use this version as a starting point for customisation. Detects UK driving licence numbers. GB licences follow a 16-character format encoding surname, date of birth, and gender. Northern Ireland licences are 8-digit numbers.

Type
regex
Engine
universal
Confidence
medium
Confidence justification
Medium confidence: GB format is structurally distinctive at 16 characters but NI format is a simple 8-digit number. Corroborative keywords like 'driving licence' are recommended.
Detection quality
Verified
Jurisdictions
uk
Regulations
UK GDPR, Data Protection Act 2018 (UK)
Frameworks
ISO 27001, ISO 27701
Data categories
pii, government-id
Scope
narrow
Risk rating
6
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Compatible

Pattern

\b([A-Z9]{5}\d[0-6]\d[0-3]\d\d[A-Z9]{2}\d[A-Z0-9]{2}|\d{8})\b

Corroborative evidence keywords

driving licence, driver licence, DL, licence number, license number, DVLA, ID number, identification, ID card, license, permit, registration, certificate

Proximity: 300 characters

Should match

Should not match

Known false positives

References

Collections