Can someone show me the regex code I would use to strip HTML comments...?
Thanx!
Try this: $pattern="/<!--(.*?)-->/";
caution: this will also strip javascript code if embedded as comment like this: <script language="javascript" type="text/javascript"> <!-- javascript-code //-->