Splitting an address into parts

This example may be useful: