I
I am using StringReplacer to remove unwanted words from an excel column. Is it possible to remove more than one word at a time or do you have to add a StringReplacer for every word I need to remove.? Thank you
Best answer by ebygomm
Hi,
I wish to remove certain words from a postal address completely.
Using the StringReplacer I tried using the text editor like you mentioned in the 'Text To Replace' option to build a SQL style query
In ArcMap this would be
[Address] = "Value1" or [Address] = "Value2" to select the words to remove
in FME text editor I tried the following (and may well have this completely wrong)
@Value(Address) = "Value1" or @Value="Value2"
But it doesn't seem to be finding the values
I am leaving the Replacement Text box blank
Thanks
Mark
If you use mode regular expression, you can build a regular expression to match multiple words and replace with nothing, e.g. to replace dog or cat you could use
\bcat\b|\bdog\b
the \b before and after the words indicates a word boundary, this means that you only match instances of cat and dog not catchment or dogwood. The | means or
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.