How to Replace the String in C#?
<p>I have the string <code>string test="http://www.test.com//web?testid=12"</code>. </p>

<p>I need to replace with in the string <strong>//</strong> into <strong>/</strong>. </p>

<p>Problem is if I use <code>string a=test.replace("//","/")</code> I get <strong>http:/www.test.com/web?testid=12</strong> all with single slash(/) but I need <strong>http://www.test.com/web?testid=12</strong>.</p>

<p>I need only the second <strong>//</strong> nearby <strong>web</strong>, not first <strong>//</strong> near by <strong>www</strong>. </p>

<p>How to do this?</p>
