title: match text between comment string in javascript code
body: <p>I am trying to strip out code between some tags. Its from a JavaScript plugin and it has multiple occurencies.</p>
  
  <p>For example:</p>
  
  <pre><code>/*&lt;ltIE8&gt;*/                                ╗
  if (!item.hasOwnProperty) return false;    ╣ this should match / go away
  /*&lt;/ltIE8&gt;*/                               ╝
  return item instanceof object;             // this should not go away/match
  ...
  /*&lt;ltIE8&gt;*/                                     ╗
  if (!window.addEvenetListener) return false;    ╣ this should match / go away
  /*&lt;/ltIE8&gt;*/                                    ╝
  return window.addEvent;
  </code></pre>
  
  <p>I would like to match/remove those two blocks. </p>
  
  <p>Tried using lookaheads like <code>\/\*&lt;ltIE8&gt;\*\/(?!=\/\*&lt;\/ltIE8&gt;\*\/)([\s\S]+)</code> but it ends up matching from the first ocurrence to the last, and missing the ones in-between.</p>
  
  <p>Example: <a href="https://regex101.com/r/iD6mL8/1" rel="nofollow">https://regex101.com/r/iD6mL8/1</a></p>
  
  <p>Any sugestions? (I will be doing these replacements using JavaScript/NodeJS).</p>