fork(2) 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. Regex expr = new Regex(@"\Gab");
  12. Console.WriteLine(expr.Match("ababab", 1)?.Success);
  13.  
  14. Regex expr2 = new Regex(@"\Gab");
  15. Console.WriteLine(expr2.Match("ababab", 2)?.Success);
  16. }
  17. }
Success #stdin #stdout 0.07s 29544KB
stdin
Standard input is empty
stdout
False
True