Introduction:

Its possible to validate your US Postcodes using a regular expression.

Step-by-Step Instructions:

Step 1: Drag and drop an question node onto the canvas. Specify the type as “text”

Step 2: Under “Advanced Options” select “Regex”

Copy and paste this regular expression:

(?!00[02-5]|099|213|269|34[358]|353|419|42[89]|51[789]|529|53[36]|552|5[67]8|5[78]9|621|6[348]2|6[46]3|659|69[4-9]|7[034]2|709|715|771|81[789]|8[3469]9|8[4568]8|8[6-9]6|8[68]7|9[02]9|987)\d{5}

Step 4: Under preview you can test by entering a US post code

Step 5: To the right you will see either a red failure or green success icon under “Validation”