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
S4829-37160-850419— Ontario 15-character driver's licence (letter + 4 + 5 + YYMMDD)Permis de conduire SAAQ: T4829-190485-07— Québec SAAQ 13-character driver's licenceAlberta DL: 148293-715— Alberta 6-3 hyphenated driver's licence format
Should not match
S4829-37160-851519— Invalid Ontario DOB month 15 (neither 01-12 nor 51-62)s4829-37160-850419— Lowercase leading letter rejected by case-sensitive rulePresent a valid Ontario or Québec driver's licence as photo ID— Prose mention without a licence numberSample template: placeholder example record for training only— Template/sample fixture suppressed by shared exclusion dictionary
Known false positives
- Alberta 6-3 hyphenated part numbers. Mitigation: 6-3 numeric branch requires explicit driver's licence / Alberta registry corroboration to enforce.
References
- Government of Ontario - Ontario Driver's Licence Format
- Société de l'assurance automobile du Québec (SAAQ) - Driver's Licence Number