RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find UK Driving Licence Number
Expression
^[A-Z9]{5}[0-9]([05][1-9]|[16][0-2])(0[1-9]|[12][0-9]|3[01])[0-9][A-Z9][0-9][A-Z0-9]([0-9]{2}?)$
Description
The Driving Licence Number consists of letter and numbers mainly taken from the holders personal information, consisting of First 5 chars of surname 1st digit of year of birth Month of birth day of birth 2nd digit of year of birth initials (2) a digit (usually 9) 2 check characters 2 digit serial number
Matches
SMITH610225PJ9WE01
Non-Matches
SMITH613225PJ9WE01
Author Rating: Not yet rated. PJWhitfield
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials