| Deutsch English Français Italiano |
|
<MPG.40fd0c80e0a741bc99030e@news.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Stan Brown <the_stan_brown@fastmail.fm> Newsgroups: comp.editors Subject: Re: Automating an atypical search & replace Date: Sat, 13 Jul 2024 23:13:55 -0700 Organization: Oak Road Systems Lines: 24 Message-ID: <MPG.40fd0c80e0a741bc99030e@news.individual.net> References: <v6u8qi$3lh0j$1@dont-email.me> <v6v372$3povk$8@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net YdoITSHUhd0bz9hK09ElbAAnSzxWrmPJ6MG3KVmQzKxMJBZYDf Cancel-Lock: sha1:cILc9i0qvGiDX6oNKzCVergW2gY= sha256:orNZpLaCCvTn1pnOocGdiZIrc8uJvJC6MeagsL0NfhM= User-Agent: MicroPlanet-Gravity/3.0.11 (GRC) Bytes: 1780 AOn Sat, 13 Jul 2024 23:39:14 -0000 (UTC), Lawrence D'Oliveiro wrote: > On Sat, 13 Jul 2024 11:08:48 -0500, Richard Owlett wrote: > > > These occurrences are consistently of the form > > <span class='add'>arbitrary_text</span> > > > > I wish to delete "<span class='add'>" and *ASSOCIATED* "</span>". > > This is beyond the abilities of regular expressions. This is the point > where you need to use an actual HTML/XML-parsing library. > In general I'd agree with you. But the OP made a big deal -- in a different thread, for some reason -- about wanting to use minimal HTML, so I doubt very much there will be nested <span> ... </span> sequences. Also, the OP quite rightly wanted to confirm each change before it is made, so presumably if there are any nested sequences he will say no to that particular edit and fix it manually. -- Stan Brown, Tehachapi, California, USA https://BrownMath.com/ Shikata ga nai...