How do I remove "\" from a string

Hi, I’m trying to remove the new line character ‘\’ from a _generatedInput document that has been converted to json.

String replace always seems to change the ‘\’ to ‘\\’ which means the new line is never removed?

Using 10.1

Please share the string (or an example) and the step(s)/code being attempted to remove the character.

FYI, “\” is not a new-line. The typical escape sequence for a newline char (0x0a) is “\n”. EDIT: but perhaps the forum processing clobbered your post?

You likely should remove the character from the source data before creating the JSON string, if that is necessary. Out of curiosity, why does the newline character need to be removed?

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