change href jquery
<p>On a search results page I have links. I would like to change the href of certain href from <code>DispForm.aspx?ID=n</code> to <code>AllItems.aspx?ID=n</code> but just for the href that have <code>/R/I/P/</code> in the url.</p>

<p>I would like to use jQuery to change those href.
Any suggestions?</p>

<pre><code>&lt;a title="" href="http://win/R/I/P/IL/F/DispForm.aspx?ID=n" id="S"&gt;link one&lt;/a&gt;
&lt;a title="" href="http://win/R/I/P/L/PN/DispForm.aspx?ID=n" id="S"&gt;link two&lt;/a&gt;
&lt;a title="" href="http://win/L/L/DispForm.aspx?ID=n" id="S"&gt;link three&lt;/a&gt;
</code></pre>
