in reply to Parsing an Mailing Addresss
I guess you have to determine what you need out of the addresses. Are you looking to CASS certify them, or do some other sort of checking? There are many possible goals.
If you're not sure, and you're dealing with addresses in the US, you might want to check out www.usps.gov which contains extensive documentation on US postal standards, which will help you with what is valid address information.
As a general parsing technique, if you split an address line on whitespace, any non alphanumeric characters, and any number-letter (or letter-number) boundary, it is much easier to determine what parts represent street numbers, directions, street types, units, etc.
|
|---|