11/ To the dismay of programmers everywhere who fall into the mental trap of thinking postcodes are always strings of numbers, Portugal is one of the countries that formats postal codes differently, requiring a dash between 4th and 5th of the 7 digits.
The first two digits specify the region of the country.