fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using System.IO;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string offer = "AK47HyperBeastFieldTested";
  9. var item = "AK47HyperBeastFieldTested";
  10. string pattern = @"\b(" + item + @")\b";
  11. int count = Regex.Matches(offer, pattern).Count;
  12. Console.WriteLine(count);
  13. }
  14.  
  15. }
Success #stdin #stdout 0.13s 24560KB
stdin
Standard input is empty
stdout
1