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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Canadian Postal Code
Expression
^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\d{1}[A-Za-z]{1}[ ]{0,1}\d{1}[A-Za-z]{1}\d{1}$
Description
Matches the Canadian postal code with or without space between. Also matches uppercase and lower case letters.
Matches
K4A3Z5 | K4A 3Z5 | k4a3z5 | k4a 3z5
Non-Matches
D1G 1T9 | abc def | 123 456 | f1g4t0
Author Rating: The rating for this expression. Sheir Ali
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: kfkhj
Name: nfkkgnd
Date: 8/18/2022 9:41:05 AM
Comment:
Spammers suck


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