I can't ever get Regex Right : <p>I have a query string I'm trying to remove a query string parameter. What I currently have is</p>

<p><code>date=(.*)&amp;</code></p>

<p>But this will remove anything to the last &amp;. I only want to remove to the first occurance of the &amp;.</p>

<p>So this is how it should work:</p>

<p><code>date=5%2F13%2F16&amp;tab=1&amp;a=b</code> = <code>tab=1&amp;a=b</code></p>

<p>But mine is doing this:</p>

<p><code>date=5%2F13%2F16&amp;tab=1&amp;a=b</code> = <code>a=b</code></p>

<p>I think I probably need something around the &amp; but I read the regex stuff and I just get more confused.</p>
