fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var search = "Capture... Test: Something";
  9. var input = "Capture... Test Something";
  10.  
  11. search = Regex.Replace(search, @"[*/?:""<>|]", string.Empty);
  12. input = Regex.Replace(input, @"[*/?:""<>|]", string.Empty);
  13.  
  14. var index = input.IndexOf(search);
  15. Console.WriteLine(index >= 0);
  16. }
  17. }
Success #stdin #stdout 0.09s 24664KB
stdin
Standard input is empty
stdout
True