Address
en-US
#zip
#postal
#us
#address
US ZIP Code
Matches a US ZIP code in 5-digit or ZIP+4 (5-4) format.
✓ US address forms✓ Shipping validation✓ Geographic targeting
✓ Valid Examples
- 90210
- 10001-1234
- 00501
✗ Invalid Examples
- 1234
- 123456
- 9021A
Usage & Integration
Validate US ZIP Code natively in your backend or frontend without copying regex strings.
Node / Edge
import { validate } from '@regexto/validators';
validate('us-zip', '...');Python
from regexto_validators import validate
validate("us-zip", "...")Go
import "github.com/regex-to/validators-go"
valid, err := validators.Validate("us-zip", "...")PHP
use RegexTo\Validators\Validator;
Validator::validate('us-zip', '...');Rust
use regexto_validators::validate;
let is_valid = validate("us-zip", "...").unwrap();