^\d{5}(-\d{4})?$ Matches: ✓ 90210 ✓ 12345-6789
^\d{5}(-\d{4})?$
ZIP+4 format for more precise delivery location.