Title |
Test
Find
Dutch License Plate
|
Expression |
^(?>[A-Z]{2}|\d\d)-(?>[A-Z]{2}|\d\d)-(?<!\d\d-\d\d-)\d\d$|^(?>[A-Z]{2}|\d\d)-(?>[A-Z]{2}|\d\d)-(?<![A-Z]{2}-[A-Z]{2}-)[A-Z]{2}$|^\d\d-[A-Z]{3}-\d$ |
Description |
Matches all 7 side code formats for cars. Only hyphens will match as separators between groups |
Matches |
78-TR-55 | 42-GFZ-1 | DF-GH-12 | 27-AD-HD | 99-24-TT | JK-13-LM | TR-11-12 |
Non-Matches |
BG-FA-KL | 17-28-79 | BC VA 13 | BG12LJ |
Author |
Rating:
Christof Verhoeven
|
Source |
|
Your Rating |
|
Title: The term 'Dutch' is wrong!
Name: Oscar
Date: 8/31/2011 12:31:04 AM
Comment:
The term 'Dutch' is wrong! This is a license plate format from The Netherlands, not 'Dutch'!
'Dutch' is NOT a country but a language which is spoken in different countries (with different forms of plate numbers).
As such, please do not use such a regexp if you know your users speak 'Dutch'. Their license plate number pattern might be quite different!