| 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:
Willem Mulder
|
| Source |
|
| Your Rating |
|
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!