Java: Parse Australian Street Addresses
- by bguiz
Looking for a quick and dirty way to parse Australian street addresses into its parts:
3A/45 Jindabyne Rd, Oakleigh, VIC 3166
should split into:
"3A", 45, "Jindabyne Rd" "Oakleigh", "VIC", 3166
Suburb names can have multiple words, as can street names.
See: http://stackoverflow.com/questions/1739746/parse-a-steet-address-into-components
Has to be in Java, cannot make http requests (e.g. to web APIs).
EDIT: Assume that format specified is always followed. I have no issue with spitting incorrectly formatted strings back at the user with a message telling them to follow the format (which I've described above).