title: c# Contains multiple words not together
body: <pre><code>   if (r.Contains("Word1" + "Word2"))
  </code></pre>
  
  <p>This code checks if "Word1" and "Word2" are in the string together e.g. nothing in between them but how does one check if the string contains those two words regardless of order or any other words in between them?</p>
  
  <p>e.g.
  Returns true if string is</p>
  
  <pre><code>    Word1Word2
  </code></pre>
  
  <p>Returns false</p>
  
  <pre><code>    Word1 Text Word2
  </code></pre>