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 |
|
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}$