fork(13) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test {
  5. public static void Main() {
  6. // your code goes here
  7. var regex = new Regex(@"![\P{Cc}\P{Cn}\P{Cs}]");
  8. var matches = regex.Matches("Hello, World!" + (char)4);
  9. Console.WriteLine("Results: " + matches.Count);
  10. foreach (Match match in matches) {
  11. Console.WriteLine("Result: " + match);
  12. }
  13. }
  14. }
  15.  
  16.  
Success #stdin #stdout 0.07s 27336KB
stdin
Standard input is empty
stdout
Results: 1
Result: !