postal code html code example
Example 1: accept zip codes in html
<label>ZIP Code</label><input type="text" pattern="[0-9]{5}" title="Five digit zip code" />
Example 2: postcode input html
[1-9][0-9]{3}\s?[a-zA-Z]{2}
<label>ZIP Code</label><input type="text" pattern="[0-9]{5}" title="Five digit zip code" />
[1-9][0-9]{3}\s?[a-zA-Z]{2}