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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[a-zA-Z]{1}[0-9]{1}[a-zA-Z]{1}(\-| |){1}[0-9]{1}[a-zA-Z]{1}[0-9]{1}$
Description
This expression will help match Quebec's postal codes.
Matches
h2j-3c4 | H2J 3C4 | H2J-3c4
Non-Matches
H2J_3C4 | H213C4 | 123456
Author Rating: The rating for this expression. Frederic Trudeau
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: True
Name: Frederic Trudeau
Date: 10/15/2004 12:22:03 PM
Comment:
Right, ill modify my description. Thanks for pointing this out : )


Title: M.
Name: D.Dubreuil
Date: 10/15/2004 10:28:31 AM
Comment:
This will validate Canadian Postal Codes as Quebec uses Canadian Postal Codes.


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