Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 652 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 652 Bytes

US Driver's License Regex Repository

codecov

Sourced from https://ntsi.com/drivers-license-format/ Known to be valid as of 2016-04-16.

Installation

Install with composer: composer require adambullmer/usdl-regex

Usage

$options = array(
    'verbose'         => FALSE,
    'caseInsensitive' => FALSE,
);
$validator = new USDLRegex/Validator($options);

$validator->validate('TX', '12345678');  // TRUE
$validator->validate('TX', '123456789'); // FALSE