title: Javascript loop strings in between selected characters
body: <p>I would like to know how to create a for-loop with text content that I cannot modify. The text I am given looks like so:</p>
  
  <p><code>&lt;start&gt;John&lt;/stop&gt;&lt;start&gt;Billy&lt;/stop&gt;</code></p>
  
  <p>I have two texts, <code>John</code> and <code>Billy</code> that are each surrounded by <code>start</code> and <code>stop</code> tags. What I would like to do is add these names without the tags to my HTML. My incomplete code looks something like:</p>
  
  <pre><code>var mytext = "&lt;start&gt;John&lt;/stop&gt;&lt;start&gt;Billy&lt;/stop&gt;";
  var count = (mytext.match(/&lt;start&gt;/g) || []).length;
  for (i = 0; i &lt; count; i++){
  something.innerHTML += eachname;
  }
  </code></pre>
  
  <p>Would like to know how to complete this. </p>