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][0-9][a-zA-Z]\s?[0-9][a-zA-Z][0-9]$
Description
Match Canadia Zip Code. You can have a space in the middle Like T2P 3C7, or no space like T2P3C7
Matches
T2p 3c7 | T3P3c7 | T2P 3C7
Non-Matches
123456 | 3C7T2P | 11T21RWW
Author Rating: The rating for this expression. Qing Jiang
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: Could be stricter
Name: Remi Sabourin
Date: 9/16/2003 8:05:02 PM
Comment:
The letters DFIOQU are not used, and W and Z are not used in the first position.


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