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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Christof Verhoeven
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: 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!


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