Validates and formats US zip codes and Canadian postal codes.
955
Examples:
| Input | Output | Valid Input |
|---|---|---|
| 17540 | 17540 | true |
| 17540-1234 | 17540-1234 | true |
| 175401234 | 17540-1234 | true |
| 1740 | 1740 | false (Length) |
| 17401234 | 17401234 | false (Length) |
| a0a0a0 | A0A 0A0 | true |
| w0a0a0 | w0a0a0 | false (W and Z not allowed as 1st character) |
| d0a0a0 | d0a0a0 | false (Letters D, F, I, O, Q, and U are not used) |
Content type
Image
Digest
Size
24.6 MB
Last updated
over 8 years ago
docker pull mysmartbus/format_zipcodedisplay