Help with String parsing
<p>I am trying to parse the string and see if the value after ":" is Integer. If it is not integer then remove "Test:M" from string. </p>

<p>Here is the example string I have.</p>

<pre><code>string testString = "Test:34,Test:M";
</code></pre>

<p>The result I need <code>testString = "Test:34"</code></p>

<pre><code>string[] data = testString.Split(',');
for (int i = 0; i &lt; data.Length; i++)
{
    string[] data1 = data[i].Split(':');
    int num = 0;
    if(Int32.TryParse(data1[1], out num))
    {

    }
}
</code></pre>
