These are a few examples of how to validate various zip code formats.
In the following examples, A
represents any letter and 9
means any number.
Read more here…
https://en.wikipedia.org/wiki/Postal_codes_in_Canada
https://en.wikipedia.org/wiki/List_of_postal_codes_in_Mexico
https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom