Program for parsing addresses into lastname, firstname, addr1, addr2, city, state, and zip.
(Note: See comments in the code for rules and assumptions.)

Enter "vertical" address list:

Parsed output in standard database format; records separated by newlines and fields separated by tabs:

Number of addresses:

Demo/test list; copy and paste into input box at top of page;
modify list before copying to test exceptions and errors: