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

  1. Drag and drop an question node onto the canvas. Specify the type as “text”
  2. Under “Advanced Options” select “Regex”
  3. 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}

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *