title: regex to find part of string and associated value
body: <p>I have a string that looks like this:</p>
  <p><code>const string = 'test_string%name=peter&amp;age=18&amp;foo=bar&amp;lol=loli_copter';</code></p>
  <p>I want to write a regex to get <code>name</code> and the <code>age</code> from this string and their values.</p>
  <p><code>const result = 'name=peter&amp;age=18;</code></p>
  <p>I have tried the following but with no luck:</p>
  <p><code>const result = string.match(/(?&lt;=name\s+).*?(?=\s+age)/gs);</code></p>
  <p>Can anyone help or point me in the right direction?</p>