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 |
|
Title: error in regex
Name: Morgan Christiansson
Date: 12/7/2011 8:33:35 AM
Comment:
The last , should be a -.