title: Regex to match all parameters in an URL
body: <p>I have a list of URLs with parameters in them and I need to strip them of all the parameters.</p>
  
  <p>Sample data:</p>
  
  <pre><code>https://www.example.com/highlights/on-sale-01304&amp;sa=U&amp;ei=2ca1VJXQOYHnsASG3YGYCg&amp;ved=0CBMQFjAA&amp;usg=AFQjCNHucW7fFrA35qeeJbUlAbsPFQNxLg
  https://www.example.com/collections/view-all-01240&amp;sa=U&amp;ei=2ca1VJXQOYHnsASG3YGYCg&amp;ved=0CBgQFjAB&amp;usg=AFQjCNGhZzf7rsslCqgHSngyFAbw_nQmvQ
  https://www.example.com/highlights/overstock-and-clearance-01217&amp;sa=U&amp;ei=2ca1VJXQOYHnsASG3YGYCg&amp;ved=0CB0QFjAC&amp;usg=AFQjCNHMfQBA4AP51_ikOGyoGEx-aB0-wQ
  </code></pre>
  
  <p>I have tried this <code>(\?|\&amp;)([^=]+)\=([^&amp;]+)</code>but it matches only a single parameter at a time and basically need to match everything after the <code>?</code> sign.</p>