Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Mike Spencer 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> 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 Richard Owlett 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 "" 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 "" non-greedy. -- Mike Spencer Nova Scotia, Canada