title: How to use LINQ to get last string in list<string> which has character 'P' in second position in string?
body: <p>I have a list of strings in list. How do I use LINQ to get the last string in the list which has the character 'P' in the second position of the string. I would like to do this in a single statement using LINQ instead of doing a search in a conventional loop.</p>
  
  <p>Example. The list contains these 3 strings:</p>
  
  <pre><code>Search a fox
  APPLE
  Going to school
  </code></pre>
  
  <p>The LINQ statement should return 2 which is the second string in the list which met the condition.</p>