get city, state or zip from a string in python
Posted
by Joe
on Stack Overflow
See other posts from Stack Overflow
or by Joe
Published on 2010-01-13T04:32:15Z
Indexed on
2010/04/27
5:23 UTC
Read the original article
Hit count: 289
I'd like to be able to parse out the city, state or zip from a string in python. So, if I entered
Boulder, Co
80303
Boulder, Colorado
Boulder, Co 80303
...
any variation of these it would return the city, state or zip.
This is all going to be user inputted data and inputted in one text field.
© Stack Overflow or respective owner