in reply to removing html comments from the page source

While the above comments should solve your problem, for your further education you might want to read up on the concept of *greed* in regular expressions.

  • Comment on Re: removing html comments from the page source