title: Using Regular Expression remove HTML comments from content
body: <p>I am getting page contents into variable <strong>$content</strong></p>
  
  <p>I need to strip HTML comments from $content using regular expression. I tried following code, it's not working properly</p>
  
  <pre><code>$content = preg_replace('/&lt;!--(.|\)*?--&gt;/', '', $content);
  </code></pre>