As discussed on many threads recently, this kind of work is really better left to the professionals - which in this case is HTML::Parser and its subclasses.
Any regex-based solution is bound to break at some point as your HTML gets more complex.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Strip HTML tags
by davorg
in thread Strip HTML tags
by rlk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |