Groups | Search | Server Info | Login | Register


Groups > alt.comp.software.seamonkey > #8436

Re: Purge *ALL* CSS from an HTML document

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Mike Spencer <mds@bogus.nodomain.nowhere>
Newsgroups alt.comp.software.seamonkey
Subject Re: Purge *ALL* CSS from an HTML document
Date 10 Feb 2026 04:10:29 -0400
Organization Bridgewater Institute for Advanced Study - Blacksmith Shop
Lines 19
Sender mds@enoch.nodomain.nowhere
Message-ID <878qd15896.fsf@enoch.nodomain.nowhere> (permalink)
References <10lfrgt$1c4kt$1@dont-email.me> <10lgb7c$1homn$1@dont-email.me> <10lgbh3$1hrch$1@dont-email.me> <10lgjml$1kknd$1@dont-email.me>
Injection-Date Tue, 10 Feb 2026 08:10:30 +0000 (UTC)
Injection-Info dont-email.me; posting-host="a2e3a3dde2555ff82795d6bd4f7df62f"; logging-data="3630095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rkJwNbw9L3xB2h0OYTbeftDRkBhDNV1k="
Cancel-Lock sha1:4lCEA3ty9z0LWBjNu2iJkLDT2bc=
X-Clacks-Overhead 4GH GNU Terry Pratchett
X-Newsreader Gnus v5.7/Emacs 20.7
Xref csiph.com alt.comp.software.seamonkey:8436

Show key headers only | View raw


Richard Owlett <rowlett@access.net> writes:

> As I replied to David. I'm not sure my goal was clear in my original 
> post. I rewrote it as:     > I'm looking for a procedure that will 
> accept an HTML file WITH
>       > CSS and then output an "equivalent" HTML4 file with NO CSS.

This is for a file you have on your own machine?  Load it in an editor
(emacs my choice) and create a macro that replaces an instance of
"<STYLE> [anything] </STYLE>" with "" and execute it as many times as
needed.  And Perl regular expressions will do that, too -- you just
have to be sure to use the perl regex locution (the '?' after '+')
that makes matching "<STYLE>.+?</STYLE>" non-greedy.



-- 
Mike Spencer                  Nova Scotia, Canada

Back to alt.comp.software.seamonkey | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-01-29 08:40 -0600
  Re: Purge *ALL* CSS from an HTML document "David E. Ross" <nobody@nowhere.invalid> - 2026-01-29 08:09 -0800
    Re: Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-01-29 12:08 -0600
  Re: Purge *ALL* CSS from an HTML document Schugo <schugo@schugo.de> - 2026-01-29 20:08 +0100
    Re: Purge *ALL* CSS from an HTML document Schugo <schugo@schugo.de> - 2026-01-29 20:13 +0100
      Re: Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-01-29 15:33 -0600
        Re: Purge *ALL* CSS from an HTML document Mike Spencer <mds@bogus.nodomain.nowhere> - 2026-02-10 04:10 -0400
          Re: Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-02-10 07:42 -0600
            Re: Purge *ALL* CSS from an HTML document "Paul B. Gallagher" <mozilla@pbg-translations.com> - 2026-02-10 23:07 -0500
              Re: Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-02-11 09:27 -0600
                Re: Purge *ALL* CSS from an HTML document Dirk Fieldhouse <surname@gmx.net.plusremovethisandtherest.invalid> - 2026-02-12 14:38 +0000
                Re: Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-02-13 08:29 -0600
                Re: Purge *ALL* CSS from an HTML document Schugo <schugo@schugo.de> - 2026-02-13 16:50 +0100
                Re: Purge *ALL* CSS from an HTML document Richard Owlett <rowlett@access.net> - 2026-02-14 05:04 -0600
                Re: Purge *ALL* CSS from an HTML document Schugo <schugo@schugo.de> - 2026-02-16 18:28 +0100
        Re: Purge *ALL* CSS from an HTML document Nuno Silva <nunojsilva@invalid.invalid> - 2026-03-02 08:46 +0000

csiph-web