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*[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
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: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


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