Get index by specific search term with a list in c#
<p>I have a list as follows:</p>

<pre><code>Cat, Green, 10
Cat, Green, 1
Dog, Red, 4
Cat, Blue, 2
</code></pre>

<p>Each item is just a comma seperated string element in a list.</p>

<p>I would like to get all the index values of all the elements in the above list that contain cat and 10 or contain cat and 2. So basically i should get the index values 0 and 3 returned from the query on the list. Can anyone show me how i can do this?</p>
