Removing a string in javascript
<p>I have a URL say
<a href="http://www.google.com/?v=as12&amp;&amp;src=test&amp;img=test" rel="nofollow">dummy URL</a></p>

<pre><code>http://www.google.com/?v=as12&amp;&amp;src=test&amp;img=test
</code></pre>

<p>Now I want to remove the &amp;src=test&amp; part alone.I know we can use indexof but somehow I could not get the idea of getting the next ampersand(&amp;) and removing that part alone.
Any help.The new URL should look like</p>

<p><a href="http://www.google.com/?v=as12&amp;img=test" rel="nofollow">http://www.google.com/?v=as12&amp;img=test</a></p>
