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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Dutch Postal code
Expression
^[0-9]{4} {0,1}[A-Z]{2}$
Description
Check the Dutch postal code offical format of "9999 AA". Since it is often stored in a database without the space, this pattern allows 0 or 1 space.
Matches
9999 AA | 9999AA
Non-Matches
9999 aa | 9999?AA
Author Rating: The rating for this expression. Willem Mulder
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:13:55 AM
Comment:
The term 'Dutch' is wrong! This is a postal code from The Netherlands, not 'Dutch'! 'Dutch' is NOT a country but a language which is spoken in different countries (with different forms of postal codes). As such, please do not use such a regexp if you know you' users speak 'Dutch'. Their postal code might be quite different!


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