--- Etienne Marcotte <[EMAIL PROTECTED]> wrote:
> I saw somewhere on the web a good regexp for removing html tags. Can't
> re-find it and it needed some minor mods.

Etienne,

No offense, but there are not good regexes for removing HTML tags.  Here are some 
legal tags that
break most regular expressions:

    <input type="text" name=">foo<">

    <a
     href =
     '/cgi-bin/script.cgi'
    >

I should add that, due to error correction in browsers, there are many illegal tags 
that still
parse correctly, yet break regexes.

You're much better off learning HTML::TokeParser or one of the many other proper HTML 
parsing
modules out there.

Cheers,
Curtis "Ovid" Poe

=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to