fork(38) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var input = "stacktraceabcdefghijklmnopqrstuvwxyztacktraceabcdefghijklmnopqrswxyztacktraceabcdefghijk";
  8. var regex = new Regex(@".{10}");
  9. string result = regex.Replace(input, "$&" + Environment.NewLine);
  10. Console.WriteLine(result);
  11. }
  12. }
Success #stdin #stdout 0.06s 33840KB
stdin
Standard input is empty
stdout
stacktrace
abcdefghij
klmnopqrst
uvwxyztack
traceabcde
fghijklmno
pqrswxyzta
cktraceabc
defghijk