Validation Expressions – Postal Codes – US and Canada
Here’s the regular expression for US & Canada Postal Codes:
^(\d{5}(( |-)\d{4})?)|([A-Za-z]\d[A-Za-z]( |-)\d[A-Za-z]\d)$
Here’s the regular expression for US & Canada Postal Codes:
^(\d{5}(( |-)\d{4})?)|([A-Za-z]\d[A-Za-z]( |-)\d[A-Za-z]\d)$