Sujet : Re: Automating an atypical search & replace
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.editorsDate : 14. Jul 2024, 00:39:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6v372$3povk$8@dont-email.me>
References : 1
User-Agent : Pan/0.158 (Avdiivka; )
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.
See also
<
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags>.