Nothing is uploaded. Just open it and start.
A five-digit US ZIP code, optionally followed by a hyphen and the four-digit ZIP+4 extension.
/^\d{5}(?:-\d{4})?$/^the start of the text\d{5}a digit (0–9), repeated exactly 5 times, as many as possible(?:a group (not captured)-the character “-”\d{4}a digit (0–9), repeated exactly 4 times, as many as possible)?end of the group, repeated optionally (0 or 1 time), as many as possible$the end of the text| Text | Result |
|---|---|
| 94105 | Matches |
| 10001-1234 | Matches |
| 9410 | Doesn't match |
| 941051 | Doesn't match |
| 94105-12 | Doesn't match |
| ABCDE | Doesn't match |
Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.