[GIS] How to split attributes using FME

address-parsingfields-attributesfme

I am trying to split an attribute into its component pieces with FME.

Ex: 1707 WILLINGTON ST, PHILADELPHIA PA 19121

into: 1707 WILLINGTON ST, PHILADELPHIA, PA, and 19121

I am using the AttributeSplitter using a comma Delimiter and I get this:
1707 WILLINGTON ST and PHILADELPHIA PA 19121

How do I get the state – city – ZIP in three separate fields?

Best Answer

In FME 2015.1 (used here)

Use the SubStringExtractor

enter image description here

If you need to work out the number of characters for the substringExtractor then use the StringSearcher it will have matched_characters you can use this as parameter for extracting multiple addresses.