9 ms·
> No weird javascript address validators (half of them think my address is malformed). There's really no excuse for those- The USPS provides an address validat
by evan_ 5y ago
> No weird javascript address validators (half of them think my address is malformed).
There's really no excuse for those- The USPS provides an address validation API that's easy to use, accurate, and free:
https://www.usps.com/business/web-tools-apis/ https://www.usps.com/business/web-tools-apis/
When you're literally the final word on what is, and is not, a deliverable address, you don't need a regex. You can just do a database lookup. Presumably they're also leveraging the same address matching technology they use with real mail in that API as well.