Title |
Test
Find
Pattern Title
|
Expression |
[0-9]{4}\s*[a-zA-Z]{2} |
Description |
Dutch zip code expression
4 numbers - space yes/no - 2 letters
|
Matches |
1054 WD | 1054WD | 1054 wd |
Non-Matches |
10543 |
Author |
Rating:
Not yet rated.
Roland Mensenkamp
|
Source |
|
Your Rating |
|
Title: The term 'Dutch' is wrong!
Name: Oscar
Date: 8/31/2011 12:21:56 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 your users speak 'Dutch'. Their postal code might be quite different!
Title: Not strict enough
Name: Erik Terwiel
Date: 3/22/2011 8:32:32 AM
Comment:
This is too simple: letter combinations SS, SD and SA are not allowed for histiric reasons.
Title: Do not use *
Name: Dick Verwijs
Date: 7/31/2007 10:36:42 AM
Comment:
* means 0, 1 or more times, so 3 spaces would also match. It should be a ?, indicating 0 or 1 time