How to match text with jquery or partial matching
<p>I have this hyperlink in anchor tag</p>

<pre><code>&lt;a href="/index.php?var1=rule-power" &gt; Text &lt;/a&gt;
</code></pre>

<p>Now i want that when that page is clicked i have the page with hyperlinks like</p>

<pre><code>&lt;a href="" &gt;rule-power &lt;/a&gt;
</code></pre>

<p>Is it possible that i can grab the var1 using jquery . even if its partial match it willl be good and then remove that  tag </p>

<p>something like</p>

<pre><code>NewVar =getParameter(var1);
$.find(a).withtext(NewVar).hide()
</code></pre>
