One of C.T.Co Java school projects.
It removes newline character preceded by n>=1 backslash characters. No regexp.
Examples:
-
In: "abc\\\ndef"
Out: "abcdef" -
In: "abc\\\\\ndef"
Out: "abcdef" -
In: "abc\ndef"
Out: "abc\ndef" -
In: "abc\\def"
Out: "abc\\def"