| Title |
Test
Find
Pattern Title
|
| Expression |
^[0-9]{4}\s{0,2}[a-zA-z]{2}$ |
| Description |
Dutch postalcode expression. 4 digits followed by max. two spaces end ending on two letters. |
| Matches |
4006 AB | 4006ab | 4006 AB |
| Non-Matches |
4006.ab | 4006_ab | 4006/ab |
| Author |
Rating:
Not yet rated.
martijn db
|
| Source |
|
| Your Rating |
|
Title: The term 'Dutch' is wrong!
Name: Oscar
Date: 8/31/2011 12:20:37 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: Dutch postalcode
Name: martijn
Date: 5/22/2003 7:11:59 AM
Comment:
Dutch postalcode expression. 4 digits followed by max. two spaces end ending on two letters.