title: Getting all URL parameters using regex
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values">How can I get query string values?</a>  </p>
  </blockquote>
  
  
  
  <p>Trying to get a regex (Javascript).</p>
  
  <pre><code>Input:   url.html?id=14114&amp;yolo=hahaha
  Output:  id=14114
           yolo=hahaha
  </code></pre>
  
  <p>So this is what i have done so far: <code>(\&amp;|\?)(.*?)\=(.*?)</code></p>
  
  <p><strong>How do I also include the red circled regions?</strong></p>
  
  <p><img src="https://i.stack.imgur.com/pJxyr.png" alt="enter image description here"></p>