Validating zip code

Posted by / 13-Feb-2017 17:02

For example, if you search for a ZIP code with country "US", but that ZIP code is located in the US Virgin Islands, the country returned will be "VI".Countries are always specified with the ISO 3166-1 alpha-2 country code, such as US, GB, and CA.Column headers will be the most important thing to pay attention to when modifying the template code.To change this file to a tab-delimited file, select "Save as," and select "tab-delimited (.txt)" format, then Save.The example that follows will walk through the process of validating zip codes from an external file.Respondents who provide a zip code that is not present in the database file will be terminated from the survey.Then edit your file name and manually replace ".txt" with the ".dat" extension and save.

In order to follow the steps outlined in this document, make sure you are aware of your header names and be prepared to change the template code to match your file. The example shown below illustrates the setup required for the file.An example of an inaccurate ZIP Code™: that specify the exact delivery location.It also is referring to Boston, MA rather than Charlestown, MA.**** This one is fairly similar to what we've done in the past.The most obvious way to match the first chunk of digits ("chunk" is a regex "term of art" that refers to a section of characters that you want to match (not really...)).

validating zip code-52validating zip code-83validating zip code-54

However, not having ZIP Codes™ validated can lead to delayed mail and unsatisfied customers.

One thought on “validating zip code”