fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var text = "a1 \n][\\`*_{}()>#+.!/:- §…";
  9. foreach (Match m in Regex.Matches(text, @"[][\\`*_{}()>#+.!/:-]"))
  10. {
  11. Console.Write(m.Value);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.1s 31084KB
stdin
Standard input is empty
stdout
][\`*_{}()>#+.!/:-