How to remove empty characters?

Hi,

I meet a weird question. I want to remove empty characters with string manipulation node by removeChars(column), but the result still contains some empty characters.

Does anybody meet this problem before? Thanks a lot!

Jocelyn

222

Hi,
I think it is best to use the regexReplace function:

regexReplace($Email Address$, "\\s+", "")

This replaces any whitespace character sequence with an empty string.
Kind regards,
Alexander

3 Likes

Hi @Jocelyn,

beside @AlexanderFillbrunn solution (which covers more) you could also just change your function from remove to “strip” (in case your characters at the beginning are spaces :slight_smile:
I would suggest to use Alexanders solution but in case you need to clear strings in the future and do not have the regex availible :stuck_out_tongue:

1 Like

Hello!

Function removeChars() from String Manipulation removes all space characters from string.

Br,
Ivan

2 Likes

oh actually did not know, always used strip or regex :see_no_evil:
Thanks for the info - then my comment above can be ignored :+1:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.