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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
[0-9]{4}[A-Z]{2}
Description
Match for dutch zipcodes. Dutch zipcodes are always in the format of 4 digits and 2 letters.
Matches
1000AB | 3035KA | 9999ZZ
Non-Matches
AA1000 | Z1000 | 1000-CC
Author Rating: Not yet rated. marrik
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:17:54 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!


Title: not correct
Name: Erik Terwiel
Date: 3/22/2011 8:50:57 AM
Comment:
This is too simple: letter combinations SS, SD and SA are not allowed for historic reasons. F, I, O, Q, U and Y are in use nowadays. I posted a correct(er) one


Title: Het Master
Name: De Perl King
Date: 2/6/2007 5:58:32 AM
Comment:
This is not a completely correct expression for Dutch post codes as the code cannot have a leading 0. A better one is as follows: ^[1-9]{1}[0-9]{3}\s?[a-zA-Z]{2}$


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