Updating a comma delimited string list in c#
<p>I have a comma delimited string list that looks something like this:</p>

<pre><code>Cat, Animal, 2
Dog, Animal, 3
Luke, Human, 1
Owl, Animal, 0
</code></pre>

<p>Now i want to search the list, Find all string elements with animal in them and add one to their number. So in the end of my query the list would look like:</p>

<pre><code>Cat, Animal, 3
Dog, Animal, 4
Luke, Human, 1
Owl, Animal, 1
</code></pre>

<p>How can i achieve this functionality? I was thinking of using a LINQ query to get all the entries that contain animal and then getting the index of each element in the list, getting all the tokens in each element by using a comma split, parsing the third token into an integer, incrementing by one and rewriting the element at the previously saved index to update the count. This is probably the least efficient method so can anyone suggest a fast, short and sweet solution to this?</p>

<p>Thanks</p>
