title: String comparison with Wildcard search in c#
body: <p>I have two strings for comparison</p>
  
  <pre><code>String Str1 = "A C";
  String Str2 = "A B C";
  Str2.Contains(Str1); //It will return False ,Contains append % at Start and End of string 
  
  //Replace space with %
  Str1 = "%A%C%"; 
  Str2 = "%A%B%C%";
  Str2.Contains(Str1); //Want it to return True ,
  </code></pre>
  
  <p>We do have <code>Contains,StartsWith,EndsWith</code> methods for comparison, But what my requirement is , if we compare <strong>str2</strong> and <strong>str3</strong> , it should return <strong>True</strong> , as it lies in <strong>Str2</strong>.</p>
  
  <p>Can we achive such behaviour in C# ?I have done this in SQL but not getting some useful at C#.Any <strong>regex</strong> etc ?</p>