Parses a Sri Lankan Driving License number. Supports:
Driving licence number. Strings and finite numbers are accepted; other types return a failure without throwing.
The detected format and number, or null if invalid.
null
parseDrivingLicense('B1234567')?.format; // 'smart_card_b' Copy
parseDrivingLicense('B1234567')?.format; // 'smart_card_b'
Parses a Sri Lankan Driving License number. Supports: