RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials