I\'m currently using PHP and a regular expression to strip out all HTML comments from a page. The script works well... a little too well. It strips out all comments includin
Something like this might work:
//
It's the same as yours, except that it ignores comments have an opening bracket immediately following the comment start tag.