fork(1) download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var textToPrint = @"Текст 1\nТекст2";
  10. Console.WriteLine(textToPrint);
  11. string output = Regex.Replace(textToPrint, @"\\n", "\n");
  12. Console.WriteLine(output);
  13. }
  14. }
Success #stdin #stdout 0.02s 30176KB
stdin
Standard input is empty
stdout
Текст 1\nТекст2
Текст 1
Текст2