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}$
Description
These are identified from the driving license as follows: • 5 characters (made up of letters and 9's padded on right) • 6 numbers • 3 characters (made up of letters and 9's padded on right) • 2 characters (either 9's or 0's)
Matches
NON99604079T9900 | NOONE355144BA900 | NONE9701010RW900
Non-Matches
ABC12343434F9900 | NOONE355123ASDAS | NOONE9121234UOUOO
Author Rating: Not yet rated. Pradeep Dhiman
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: error in regex
Name: Morgan Christiansson
Date: 12/7/2011 8:33:35 AM
Comment:
The last , should be a -.


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