Skip to content

zipfour

jdubs edited this page Oct 23, 2016 · 1 revision

Overview

Requires a valid US zip code plus four be entered into spec control. Plus four is optional and will validate if missing. Example of allowed zip code: 90120, 90120-5555. Regular expression used for validation: ^\d{5}$|^\d{5}-\d{4}$

Parameters

( options ) Includes all optional properties applied to all validators

Example

[[Zip]]
spec['Zip'].zipfour();

Clone this wiki locally