Canada Provincial Driver's Licence Number (ON / QC / AB / BC)

Packable custom multi-province Canadian driver's licence detector (complementing ca-drivers-license, which is a source: microsoft built-in reference stub): covers structured Ontario (15 chars: letter + 4 + 5 + YYMMDD with +50 female month), Québec SAAQ (13 chars: letter + 4 + DDMMYY/YYMMDD + 2), and Alberta hyphenated (6 digits - 3 digits) formats.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence on Ontario and Québec structured formats (15-char and 13-char alpha-hyphenated with date-of-birth constraints); Alberta 6-3 is gated on driver's licence keywords.
Jurisdictions
ca
Regulations
PIPEDA, Act respecting the protection of personal information in the private sector (Québec Law 25)
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, CrowdStrike DLP: Compatible, Palo Alto: Adapted from Purview, Netskope: Adapted from Purview

Pattern

(?-i)\b([A-Z]\d{4}[-\s]?\d{5}[-\s]?\d{2}(?:0[1-9]|1[0-2]|5[1-9]|6[0-2])(?:0[1-9]|[12]\d|3[01])|[A-Z]\d{4}[-\s]?\d{2}(?:0[1-9]|1[0-2]|5[1-9]|6[0-2])(?:0[1-9]|[12]\d|3[01])[-\s]?\d{2}|\d{6}-\d{3})\b

Corroborative evidence keywords

driver's licence, drivers license, permis de conduire, SAAQ, MTO, Ministry of Transportation, class G

Proximity: 300 characters

Should match

Should not match

Known false positives

References

Collections