fork(1) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text.RegularExpressions;
  6.  
  7. public class Test
  8. {
  9. public static void Main()
  10. {
  11. var s = "\x08 \n\r";
  12. var result = s.Any(c => (c >= 0 && c <= 31) || c == 127);
  13. Console.WriteLine(result);
  14. var result2 = s.Where(c => (c >= 0 && c <= 31) || c == 127).ToList();
  15. Console.WriteLine("'{0}'", string.Join("';'", result2));
  16. }
  17. }
Success #stdin #stdout 0s 131648KB
stdin
Standard input is empty
stdout
True
'';'	';'
';'
'