in reply to Stripping tags from a PerlMonks page.

I think that your best bet for this task would be to use HTML::Parser or one of its subclasses (HTML::TokeParser seems most appropriate). Any solution that doesn't use a real parser will come up against limitations eventually.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000, ICA, London
<http://www.yapc.org/Europe/>
  • Comment on Re: Stripping tags from a PerlMonks page.