Created
April 8, 2026 15:51
-
-
Save petergi/9602aeff38c3dccbc700feb114b73bae to your computer and use it in GitHub Desktop.
Matches US ZIP, ZIP + 4, and Canadian Postal Codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /(^\d{5}(-\d{4})?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment