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.
In reply to Re: removing html comments from the page source
by hangon
in thread removing html comments from the page source
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |