in reply to Re: looking for a regexp
in thread looking for a regexp

And swiftone was known to speak:
That said, a basic Regexp to match simple HTML is:
/<[^>]*>/ #matches an HTML tag
Uh, no. This incorrectly stops on
<hello there="inside > foo">
too early. Please use HTML::Filter or one of the other HTML::Parser-derived modules.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE:(2) looking for a regexp
by swiftone (Curate) on Jun 09, 2000 at 17:39 UTC
    Uh, no. This incorrectly stops on
    <hello there="inside > foo">

    That's not _simple_ HTML anymore. :) Packages are better (as I suggested), but sometimes you need a quick script for a simple task and you don't want to have to learn a package to do it.