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\bthe \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
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Login to the community
No account yet? Create an account
An FME Account is required to contribute
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.


