How about using the proper tool for the job, like an HTML parser: HTML::Parser. Actually, I like HTML::TreeBuilder myself, it's a layer above HTML::Parser that makes it even easier to process the HTML. This way you don't have to bother about multi lines content, comments, weird HTML markup and the likes.
In reply to Re: Trying to parse html file
by mirod
in thread Trying to parse html file
by annunaki10
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |