▲ Regular Expressions in JavaScript to Improve User Experience at medium.com▼2 up and 1 down, posted by EthanJS 2514 days ago 1 comment
jklu 2513 days ago. link 1 point ▲ ▼The regular expression part of this is rather small. Most of the article talks about mapping the fields to US states, cities and zipcodes. Question is: do you want to maintain those yourself ? (and load them all client side ;-)) Alternatively one could use: https://developers.google.com/maps/documentation/javascript/places-autocomplete or if you only need the US: https://www.ups.com/us/en/services/technology-integration/us-address-validation.page and there are probably many more ;-)