title: get querystring using javascript and regex
body: <p>I will have my url as this:</p>
  
  <p><a href="http://mysite.com/results.aspx?s=bcs&amp;k=" rel="nofollow">http://mysite.com/results.aspx?s=bcs&amp;k=</a>"Hospital" OR "Office" OR "Facility"</p>
  
  <p>I want to grab everything after 'k=', excluding 'k=' itself..</p>
  
  <p>And this regex is partially working..but it grabs everything with k two times..</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  document.write('&lt;p&gt;Showing Results for all' + 
  window.location.href.match(/[?&amp;]k=([^&amp;#]+)/) || [] + '&lt;/p&gt;');
  &lt;/script&gt;
  </code></pre>