Other Resources:
Validating Canadian Postal Codes
How to write a regular expression to validate Canadian Postal Codes?
For example, T2X 1V4 is a valid Canadian postal codes.
✍: Guest
Here is the regular expression to validate Canadian postal codes:
[ABCEGHJKLMNPRSTVXY]\d[A-Z] ?\d[A-Z]\d
[ABCEGHJKLMNPRSTVXY] - 18 FSA possible letters
\d - A digit
[A-Z] - Any upper case letter
? - An optional space
\d - A digit
[A-Z] - Any upper case letter
\d - A digit
2013-01-29, 0👍, 0💬
Popular Posts:
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
How to capture the Soso Spider entries from Web log file? Here are some Web log file entries: 127.0....
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...