How to replace various characters with Replace

Hello community, i’m triying to replace all white spaces, “(” , and “)”
i did this

image

But how can i do this shorter ?

I try this c4.Replace(“(,), “,””) but it does not work

use regex replace activity to replace give the parrtern “(\s+)?” and replacement “”. hope this may work for you.

regards,
Pathrudu

1 Like

Hi @naotosx

You can use replace function to remove blank spaces.

Removewhitespaces

Thanks & Regards
Farhan

1 Like

Thanks, do you have any example ?

Hope this may help you…

stringReplace.xaml (5.4 KB)

regards,
Pathrudu

You can use c4.Replace(" “,“”).Replace(“(”,““).Replace(”)“,“”) :grinning:

4 Likes