Displaying page
of
pages;
Items to
Title |
Test
Details
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:
Qing Jiang
|
Title |
Test
Details
Pattern Title
|
Expression |
^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$
|
Description |
This expression matches three different formats of postal codes: 5 digit US ZIP code, 5 digit US ZIP code + 4, and 6 digit alphanumeric Canadian Postal Code. The first one must be 5 numeric digits. The ZIP+4 must be 5 numeric digits, a hyphen, and then 4 numeric digits. The Canadian postal code must be of the form ANA NAN where A is any uppercase alphabetic character and N is a numeric digit from 0 to 9.
|
Matches |
44240 | 44240-5555 | T2P 3C7
|
Non-Matches |
44240ddd | t44240-55 | t2p3c7
|
Author |
Rating:
Qing Jiang
|
Displaying page
of
pages;
Items to