There's a section in my book (section 8.2) that explains in detail exactly why you shouldn't parse HTML with regular expressions.
HTML::TreeBuilder (which, I think, would be the most useful module for this task) goes to great lengths to try to make sense of invalid HTML. It'll handle just about anything that you throw at it.
--"The first rule of Perl club is you don't talk about Perl club."
In reply to Re: Re: Find and replace
by davorg
in thread Find and replace
by dvdauthority
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |