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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Belgian License Plate
Expression
^[A-Z]-\d{3}(?>\d|-[A-Z])$|^[A-Z]{2,3}-\d{3}$|^\d{3}-[A-Z]{3}$
Description
Matches all 5 formats for Belgian cars. Only hyphens will match as separators between groups
Matches
452-FGH | DAG-175 | KJ-398 | W-9485 | J-154-L
Non-Matches
456FGK | 456 FGK | 36-KTR
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

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