That's a fair cop. But here is another ... instead of just showing how to strip <u> tags from an HTML document, wouldn't (if CSS is a valid solution) it be better to show how to override <u> tags instead?
u { text-decoration: none; }
I understand your rant grinder, but if you have been following Tricky's problems ... you see that he just keeps adding more to the list of items to be removed from his HTML. Pretty soon his list of regexes is going to be hairy. But then again, maybe this is better for new-comers ... you don't really appreciate a good thing until you really need it. ;)

UPDATE:
From Tricky's home node:

I aim to complete my MSc project by Jan 2004, which involves parsing HTML pages in a proxy server, stripping tags which impede Web access for visually impaired people (including dyslexics and colour blind), and returning to the client.
Yep, sounds like Tricky sure could use HTML::Santizer or HTML::Scrubber ... but i would be tempted to slay this dragon with XML::LibXML and XML::LibXSLT myself ...

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to 2Re: Removing underline tags with regexp (is a good idea) by jeffa
in thread Removing underline tags with regexp by Tricky

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.