good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Matching HTML Commentsby allolex (Curate) |
on Mar 02, 2004 at 13:18 UTC ( [id://333245]=note: print w/replies, xml ) | Need Help?? |
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. --
In Section
Seekers of Perl Wisdom
|
|