Description |
Matches any 5 or 9 digit U.S. zip code with a period, hyphen, plus sign, space delimiter or no delimiter. The first capture is the first 5 digits and, optionally, the second capture is the last 4 digits.
Add ^ at the beginning and $ to force the entire string to be a valid zip. |