title: C# Return match found with Contains
body: <p>I need to return all matches found when comparing a block of text with a list of strings.</p>
  
  <pre><code>if(myList.Any(myText.Contains))
  </code></pre>
  
  <p>I can verify that there is a match with the above, but I'm not sure how to go further and return the matching string. I looked into Intersect, but as far as I understood it only works on two of the same type. </p>
  
  <p>Sample data:</p>
  
  <pre><code>myList[] = { "City of London", "City of Edinburgh" }; etc
  myText = "I am applying for the position in the City of London";
  </code></pre>
  
  <p>The desired result here would be "City of London", either via setting the resulting match as a string, or returning the index of myList. Any help greatly appreciated, thanks! </p>