title: Easy way to search a string for strings
body: <p>I'm trying to find the easiest way to search a <code>string</code> for an array of possible <code>string</code>s.  I know the easy way to do this for characters is to use <code>myString.IndexOfAny(charArray)</code>.  But how what if I'd like to search my <code>string</code> for <code>string</code>s and not just characters?  Are there any .net tricks or methods that make this easier?</p>
  
  <p>Basically, I'd like to do something like this:</p>
  
  <pre><code>string myName = "rahkim";
  string[] names = new string[] {"joe","bob","chris"};
  
  if(myName.IndexOfAny(names) &gt;= 0)
  {
        //success code//
  }
  </code></pre>
  
  <p>I know there are ways to do this with loops, etc.  But I was hoping for something inherent in the framework.</p>