Delete string into string
<p>I have a problem with search and delete string in string.
As you look in the image I want to delete the string between the balise  and  using my code. But it want delete so where is my problem?</p>

<pre><code>string chaine = im;
int href = chaine.IndexOf("&lt;a href");
int ahref = chaine.IndexOf("&lt;/a&gt;");
string sup = "";
for (int c = href; c &lt; ahref; c++)
{
    sup = sup + chaine[c];
    if (chaine[c] != ahref)
        break;
}
chaine = chaine.Replace(sup, "");
im = chaine;
</code></pre>

<p><img src="http://i.stack.imgur.com/44fSr.jpg" alt="my screen shoot"></p>
