StringReplace does not do what I expect (version 2024.2.1.0)
Newlines are not replaced, can someone please point out what I'm doing wrong?

StringReplace does not do what I expect (version 2024.2.1.0)
Newlines are not replaced, can someone please point out what I'm doing wrong?

Best answer by ebygomm
Your regular expression isn’t correct
Your test string contains the actual text \n which is what your regex is matching
Try using \R