fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. if (Regex.IsMatch("t1", @"\bt1\b"))
  8. {
  9. Console.WriteLine("This works as expected");
  10. }
  11. }
  12. }
Success #stdin #stdout 0.06s 34016KB
stdin
Standard input is empty
stdout
This works as expected