Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi,
I have a string 'Ranjith Jose' in column 'Name', which has double space between first and last name. I have used Replace prepare recipe.
Matching Mode: Regular Expression
Normalization Mode: Exact
Replacements
\s+ --> No Value (I need to keep one space instead of 'No Value'.)
Please assist.
Thanks,
Ranjith Jose.
Hi,
the Find&Replace step used to trim and ignore whitespace on replacements until quite recently, so if you aren't on a v9.0.3, it's probably the expected behavior.
You should use a "Formula" step, and use replaceChars() or replace(), like
strval("Name").replaceChars(" ", " ")
or
strval("Name").replace(/\s+/, " ")
Hi,
the Find&Replace step used to trim and ignore whitespace on replacements until quite recently, so if you aren't on a v9.0.3, it's probably the expected behavior.
You should use a "Formula" step, and use replaceChars() or replace(), like
strval("Name").replaceChars(" ", " ")
or
strval("Name").replace(/\s+/, " ")
Thanks fchataigner2!
It worked! Appreciate your help ๐