title: Can't replace text on string in C#
body: <p>I have string like:</p>
  
  <pre><code>          Student 12:00AMLeoPan        Final points        
  &lt;!--&lt;div class='icon displayOn' &gt;&lt;span onclick=';' title=''&gt;&lt;/span&gt;&lt;/div&gt;--&gt;0.5
        &amp;nbsp;         2.00&lt;!--&lt;div class='icon'&gt;&lt;spanonclick='' title=''&gt;&lt;/span&gt;&lt;/div&gt;--&gt;    
  </code></pre>
  
  <p>I want to replace string StartWith <code>&lt;!--&lt;div</code> to end <code>&lt;/div&gt;--&gt;</code>, and string <code>&amp;nbsp</code> to <code>""</code> values.</p>
  
  <p>I tried with my code:</p>
  
  <pre><code>string finalResult = Regex.Replace(abc, "&lt;!--&lt;div" + ".*&lt;/div&gt;--&gt;&amp;nbsp;", "")
                            .Replace("&lt;!--&lt;div" + ".*&lt;/div&gt;--&gt;", "")
                            .Replace("&amp;nbsp;", "");`
  </code></pre>
  
  <p>But <code>Regex.Replace</code> can't replace.</p>
  
  <p>How to remove this string? Thanks.</p>
  
  <p>Updated 1:</p>
  
  <p>Thanks, @Mark. </p>
  
  <p>I tried with: <code>.Replace("&lt;!--&lt;div" + ".*&lt;/div&gt;--&gt;", "")</code>. </p>
  
  <p>And it remove all:</p>
  
  <p><code>&lt;!--&lt;div class='icon displayOn' &gt;&lt;span onclick=';' title=''&gt;&lt;/span&gt;&lt;/div&gt;--&gt;0.5
        &amp;nbsp;         2.00&lt;!--&lt;div class='icon'&gt;&lt;spanonclick='' title=''&gt;&lt;/span&gt;&lt;/div&gt;--&gt;</code>. </p>
  
  <p>Result only: <code>Student 12:00AMLeoPan        Final points</code>.</p>
  
  <p>You can see I have two have start with: <code>&lt;!--&lt;div</code> and end with: <code>&lt;/div&gt;--&gt;</code>. </p>
  
  <p>But it replaces all. And want final result to show like:</p>
  
  <p><code>Student 12:00AMLeoPan        Final points     0.5      &amp;nbsp;         2.00</code></p>