trim url(query string)
<p>I have a query string like the one given below: </p>

<p><a href="http://localhost/project/viewMember.php?sort=Y2xhc3M=&amp;class=Mw==&amp;page=9" rel="nofollow">http://localhost/project/viewMember.php?sort=Y2xhc3M=&amp;class=Mw==&amp;page=9</a></p>

<p>Now variable: page in query string can be anywhere within the query string either in beginning or middle or at end (like ?page=9 or &amp;page=9&amp; or &amp;page=9).</p>

<p>Now, I need to remove page=9 from my query string and get a valid query string.</p>
