I have two scenarios; In Column A, I need everything before a set of string, and in Column B, I need everything after a set of string, by using StringReplacer. Below is an example of what I am trying to do:
COUNTY OF PRINCESTON
REGION COUNTIES OF LAMBERSON
Column A:
COUNTY
REGION COUNTIES
Column B:
PRINCESTON
LAMBERSON
in the StringReplacer, I have the expression
^.*\\ OF for everything before
\\ OF ,*$ for everything after
Based on a previous forum https://community.safe.com/s/question/0D54Q000080hTpzSAE/how-can-i-remove-everything-after-in-fme-using-string-replacer
The result of this is that there are no changes to the strings, as everything before and after the ' OF ' remained in the columns.