Displaying page
of
pages;
Items to
Title |
Test
Details
Dutch zip code
|
Expression |
[1-9][0-9]{3}[ ]?(([a-rt-zA-RT-Z][a-zA-Z])|([sS][bce-rt-xBCE-RT-X]))
|
Description |
Most RegExpr for dutch zip codes are too simple. For historic reasons, the two-letter combinations SS, SA and SD are not allowed.
There should be one space between the numbers and letters, but I allow any number of spaces. Also I allow lowercase. In the early days of dutch zip codes, some letters were not allowed to avoid confusion (F,I,Q, O etc). Nowadays, they are not excluded anymore, because we ran out of letter combinations.
It should be easy to make the RegExpr more strict, by prescribing ONE mandatory space and allowing only uppercase.
|
Matches |
1234HG | 3454 FG | 1000 AA | 3456 sg
|
Non-Matches |
0987 SE | 8767 SD | 6756 ss
|
Author |
Rating:
Not yet rated.
Erik Terwiel
|
Displaying page
of
pages;
Items to