fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var a = "10101001010100";
  9. Console.WriteLine(Regex.Replace(a, "[01]{7}", m => ((char)Convert.ToByte(m.Value, 2)).ToString()));
  10. }
  11. }
Success #stdin #stdout 0.02s 30128KB
stdin
Standard input is empty
stdout
TT