String Manipulation - regexReplace backslash

I am trying use regexReplace function in String Manipulation to replace backslash at the end of the string. I can do it in perl node but the amount data that I have it takes forever to execute. Can any on help me?

Thanks,

-Kam

I think this works for me. I any one has better idea please let me know. 

regexReplace($column$, "(/|\\\\)$" "")

 

Thanks,

-Kam

1 Like

You could use a "String Replacer" with a Regular expression: ^(.*)(\\)$ and then replace whole string with $1

This will remove backslash if it is the last character in the string value.

I've attached image file of the configuration settings.

Didn't think about that. I appreciate your help.

Thanks,

Kamlesh