Build, test, and debug regular expressions
Matches US postal ZIP codes in either the basic 5-digit format (e.g., 12345) or the extended ZIP+4 format (e.g., 12345-6789), where the hyphen is optional. Also accepts the 9-digit form without a hyphen (123456789). Commonly used for address form validation, shipping applications, and validating or cleaning US address data.