https://github.com/adambullmer/usdlregex
US Driver's License Regex
https://github.com/adambullmer/usdlregex
drivers-license php regex
Last synced: 10 months ago
JSON representation
US Driver's License Regex
- Host: GitHub
- URL: https://github.com/adambullmer/usdlregex
- Owner: adambullmer
- Created: 2013-04-04T20:33:42.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T14:19:54.000Z (over 5 years ago)
- Last Synced: 2024-04-23T17:52:25.604Z (about 2 years ago)
- Topics: drivers-license, php, regex
- Language: Gherkin
- Size: 38.1 KB
- Stars: 36
- Watchers: 3
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
US Driver's License Regex Repository
====================================
[](https://codecov.io/gh/adambullmer/USDLRegex)
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
-----
```php
$options = array(
'verbose' => FALSE,
'caseInsensitive' => FALSE,
);
$validator = new USDLRegex/Validator($options);
$validator->validate('TX', '12345678'); // TRUE
$validator->validate('TX', '123456789'); // FALSE
```