Validating postal code
Many vendors also sell validation tools, which allow customers to properly match addresses and postal codes.
Hard-copy directories can also be consulted in all post offices, and some libraries.
For instance, the locale “de” is a locale but could not be used with Postal code formats are simply regular expression strings.
When the international postal code format, which is used by setting the locale, does not fit your needs, then you can also manually set a format by calling ). You should also be aware that postcode values are always be validated in a strict way.
Simple and flexible usually go together, so a short while later a module with a handful of methods like ) and the code is up on Git Hub.