Hi,
According to the Canadian Zipcode you must exclude the letters D, F, I, O, Q, & U in the 2nd & 3rd letters. Since insensitivity can be expressed with /i the below \"blocks\"
should work:
As shown:
^((\\d{5}-\\d{4})|(\\d{5})|([AaBbCcEeGgHhJjKkLlMmNnPpRrSsTtVvXxYy]\\d[A-Za-z]\\s?\\d[A-Za-z]\\d))$
Suggested replacement for Alpha blocks:
[ABCEGHJKLMNPRSTVXY]
[ABCEGHJKLMNPRSTVWXYZ]
[ABCEGHJKLMNPRSTVWXYZ]
If I am wrong, you should fix the CA zipcode.
Daniel