This is the correct answer to the problem var myStr = "FirstLine\n\\SecondLine\\\rThirdLine"; but this var myStr = "FirstLine\r\\SecondLine\\\nThirdLine"; should work as well. It shouldn't matter if the newline is used first or the carriage return is used first as long as both are used according to the instructions. Should be a simple regex fix.
This is the correct answer to the problem
var myStr = "FirstLine\n\\SecondLine\\\rThirdLine";
but thisvar myStr = "FirstLine\r\\SecondLine\\\nThirdLine";
should work as well. It shouldn't matter if the newline is used first or the carriage return is used first as long as both are used according to the instructions. Should be a simple regex fix.