title: Split a text with header
body: <p>I have a string like this:</p>
  
  <pre><code>&amp;topic1
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, 
  sed do 
  eiusmod tempor incididunt ut 
  
  &amp;topic2
  labore et dolore magna aliqua. Ut enim ad minim 
  www.example.com/test?id=1&amp;name=abc
  veniam, quis nostrud exercitation ullamco lab
  
  &amp;topic3
  hello
  </code></pre>
  
  <p>Each time there is <code>(beginning of line) + &amp; + name + \n</code>, it should be parsed into a new item.</p>
  
  <p><strong>How is the most natural way to parse it this way with Javascript:</strong></p>
  
  <pre><code>[['topic1', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit,\nsed do\neiusmod tempor incididunt ut'],
   ['topic2', 'labore et dolore magna aliqua. Ut enim ad minim\nwww.example.com/test?id=1&amp;name=abc\nveniam, quis nostrud exercitation ullamco lab'],
   ['topic3', 'hello']]
  </code></pre>
  
  <p><strong>?</strong></p>
  
  <p>I have several problems with this method:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var s = "&amp;topic1\nLorem ipsum dolor sit amet, consectetur adipiscing elit,\nsed do\neiusmod tempor incididunt ut\n\n&amp;topic2\nlabore et dolore magna aliqua. Ut enim ad minim\nwww.example.com/test?id=1&amp;name=abc\nveniam, quis nostrud exercitation ullamco lab\n\n&amp;topic3\nhello";
  
  s.split('&amp;').forEach(function(elt) { console.log(elt.split('\n')[0], elt.split('\n').slice(1)); });</code></pre>
  </div>
  </div>
  </p>
  
  <ul>
  <li><p>the first item is empty (this can be removed after, but maybe there's a cleaner way?)</p></li>
  <li><p>if <code>&amp;</code> is in the middle of a line (and not beginning) then this code doesn't work</p></li>
  <li><p>I'd like the the text after the header title to be in one single string (e.g. <code>Lorem ipsum dolor sit amet, consectetur adipiscing elit,\nsed do\neiusmod tempor incididunt ut</code>), and not split for each <code>\n</code></p></li>
  </ul>
  
  <p>How to do a cleaner parsing?</p>