Regular Expressions 101

Community Library

Community Library Entry

2

Regular ExpressionOpen Workspace

r"
(A|D)?R?(B|C|E|F)?(G[12]?)?L?S?(M[12]?)?
"

Description
Created·2015-10-16 13:04
Type·Match
Flavor·Python

In Ontario, Canada, license classes are combined on the drivers license. This regex will parse out individual classes from the combination.

Submitted by Gregory Holley
Open Workspace