title: Javascript - regex replace string
body: <p>I'm trying to replace a string using regex but I must doing something wrong.</p>
  
  <p>I would like to replace all text/string between <code>&lt;!--StartFragment--&gt;</code> to <code>&lt;!--EndFragment--&gt;</code></p>
  
  <pre><code>&lt;body lang=EN-US style='tab-interval:36.0pt'&gt;
  &lt;!--StartFragment--&gt;&lt;span style='font-size:11.0pt;line-height:107%;
  font-family:"Calibri",sans-serif;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
  Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
  mso-bidi-font-family:Arial;mso-bidi-theme-font:minor-bidi;mso-ansi-language:
  EN-US;mso-fareast-language:EN-US;mso-bidi-language:HE'&gt;Hello how are you?&lt;/span&gt;&lt;!--EndFragment--&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I tried to use something like:</p>
  
  <pre><code>content = content.replace(/&lt;!--StartFragment--&gt;(.+?)&lt;!--EndFragment--&gt;/, '&lt;i&gt;new replaced string&lt;/i&gt;');
  </code></pre>
  
  <p>Any idea what I'm doing wrong?</p>