Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US postal code validation #82

Open
dimitriBouteille opened this issue Jan 9, 2024 · 0 comments
Open

US postal code validation #82

dimitriBouteille opened this issue Jan 9, 2024 · 0 comments

Comments

@dimitriBouteille
Copy link

Wikipedia :

Known as the ZIP Code with five digits 99999* or the ZIP+4 Code with nine digits 99999-9999* (while the minimum requirement is the first five digits, the U.S. Postal Service encourages everyone to use all nine). Also used by the former US Pacific Territories: Federated States of Micronesia; Palau; and the Marshall Islands, as well as in current US territories American Samoa, Guam, Northern Mariana Islands, Puerto Rico, and the United States Virgin Islands. An individual delivery point may be represented as an 11-digit number, but these are usually represented by Intelligent Mail barcode or formerly POSTNET bar code.

The first digit is assigned regionally (for example, ZIP codes beginning with 9 are found in the western coastal states, Alaska, Hawaii, and islands in the Pacific), and ZIP codes with the same first three digits are served by the same USPS sorting facility (which sometimes serve multiple such groupings), so will be geographically clustered (for example, all ZIP codes in 919XX, 920XX, and 921XX are found in San Diego County, California).

Validation work some zip code 👍

image (1)

But not working with this format 👎

image (2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant