title: JS / Node.js string().replace() help also help editing URL
body: <p>I am trying to edit a string in Node.js. I am developing a web proxy, and I need to rewrite some stuff.</p>
  <p>What I need to rewrite is when there is two querystrings in a URL.
  I just need the first one to stay but the rest to be modified to &quot;&amp;&quot;.
  This is what I got.</p>
  <pre><code>.replace(new RegExp(/src=&quot;(.*?)?(.*?)?&amp;_get=/gi),'src=&quot;$1' + '$2' + '&amp;_get=')
  </code></pre>
  <p>But it's not replacing the querystring but the replace is working.</p>
  <p>I also need this in string.replace() specifically. If this is not possible, I would like to know how I can get a URL to redirect to a link that replaces the querystring except the first one.</p>