I am trying to remove the +'s in between words for my table (i.e. stainless+steel to be just stainless steel) and my field name is SearchTerm. I tried the eval replace command method but it keeps saying Regex quantifier does not follow repeatable item; I do not know what to do. Any help would be appreciated.
My eval command:
| eval SearchTerm=replace(SearchTerm,"+"," ")
Edit: Spelling
You need to escape like this (because +
is a special command character):
| eval SearchTerm=replace(SearchTerm,"\+"," ")
I would do it like this:
| rex field=SearchTerm mode=sed "s/\+/ /g"
You need to escape like this (because +
is a special command character):
| eval SearchTerm=replace(SearchTerm,"\+"," ")
I would do it like this:
| rex field=SearchTerm mode=sed "s/\+/ /g"
Hi @zikpefu
escape '+'
eval SearchTerm=replace(SearchTerm,"\+"," ")