I was wondering, are there many variations that postal codes can take around the world?
For example, in Switzerland, every zip code is a four-digit number, but it can be written as
I would basically like to have a function that makes a postal code canonical, given the country. For example
f(XXXX, Switzerland) == f(CH-XXXX, Switzerland) == CH-XXXX.