Last active
August 29, 2015 14:15
-
-
Save stephan281094/2fa4bf97c20b77fe9648 to your computer and use it in GitHub Desktop.
Zipcode regex
This file contains 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
/^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA|[0-9]{4,5}|[0-9]{4}[ ]?[a-zA-Z]{2})$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This regex works for the following countries: