Because regular expression are prone not to work properly if there is any unexpected data, a lot of the monks (like tinita) will recommend you use something like Ovid's HTML::TokeParser::Simple to do this sort of thing. There is an example specific to dealing with comments in the documentation for the module.
I hope that helps.
--
Allolex
In reply to Re: Matching HTML Comments
by allolex
in thread Matching HTML Comments
by stuaxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |