title: JS What's the fastest way to display one specific line of a list?
body: <p>In my Javascript code, I get one very long line as a string.
  This one line only has around 65'000 letters. Example:</p>
  
  <pre><code>config=123&amp;url=http://localhost/example&amp;path_of_code=blablaba&amp;link=kjslfdjs...
  </code></pre>
  
  <p>What I have to do is <strong>replace all &amp; with an break (\n) first</strong> and then <strong>pick only the line which starts with "path_of_code="</strong>. This line I have to write in a variable.</p>
  
  <p>The part with replace &amp; with an break (\n) I already get it, but the second task I didn't.</p>
  
  <pre><code>    var obj = document.getElementById('div_content');
      var contentJS= obj.value;
      var splittedResult;
      splittedResult = contentJS.replace(/&amp;/g, '\n');
  </code></pre>
  
  <p>What is the fastest way to do it? Please note, the list is usually very long.</p>