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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find UK Driving Licence
Expression
^([A-Z]{2}[9]{3}|[A-Z]{3}[9]{2}|[A-Z]{4}[9]{1}|[A-Z]{5})[0-9]{6}([A-Z]{1}[9]{1}|[A-Z]{2})[A-Z0-9]{3}[0-9]{2}$
Description
Matches the UK Drivers License format as laid down by the DVLA / dvla. See http ://www.govtalk.gov.uk/gdsc/html/frames/default.htm Matches:
Matches
tom99808275m99sc23 sugar654155a98lw59
Non-Matches
tom89808275m99sc23 9ugar654155a98lw59
Author Rating: The rating for this expression. Mohamed Corsa
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

Title: Seems to works but lowercase examples are wrong
Name: Will
Date: 10/19/2020 11:51:26 AM
Comment:
It works and i think its correct, but the examples given for matches don't match as only upper case letters are allowed.


Title: Works -
Name: Tester
Date: 11/9/2010 4:12:19 AM
Comment:
Works - i have tested it using several uk driving licences and it seems to accept them


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