I'm facing an issue with a string that looks like this:
var str = "1111 type reallycoolsentence\text.json\n1111 type anotherreallycoolsentence text2.json
My goal is to eliminate the characters located between the backslashes in the string.
This is the desired outcome I am seeking:
str = "type reallycoolsentence\\type anotherreallycoolsentence"
I do have knowledge on removing characters within special characters without altering the special characters themselves. Unfortunately, I couldn't find sufficient answers to my specific problem on various online platforms.