Jquery to modify all anchor tag href on a page and extract key request parameters from href attribute
<p>hi i need to replace all the href's in my page by a onclick event which has few of the parameters from the query string </p>

<p>here is a sample anchor tag</p>

<pre><code>&lt;a href="google.com?businessunit=Products&amp;dataSegement=BOTH_PERIOD&amp;endDate=12%2F06%2F2011&amp;d-49489-s=8&amp;d-49489-p=1&amp;d-49489-o=2&amp;catid=3"&gt;Demo Anchor&lt;/a&gt;
</code></pre>

<p>another sample</p>

<pre><code>&lt;a href="google.com?businessunit=Products&amp;dataSegement=BOTH_PERIOD&amp;pubgrpid=6&amp;endDate=12%2F06%2F2011&amp;d-49489-s=8&amp;d-49489-p=1&amp;d-49489-o=2&amp;marketid=1analysisType=conversion&amp;catid=3"&gt;Another sample&lt;/a&gt;
</code></pre>

<p>i need to extract the values of d-49489-s, d-49489-p, d- 49489-o and 
 change anchor tag to something like </p>

<pre><code>  &lt;a href="#" onclick="callMethod(d-49489-s,d-49489-p, d-49489-o )"&gt;
</code></pre>
