Sujet : Automating an atypical search & replace
De : rowlett (at) *nospam* access.net (Richard Owlett)
Groupes : comp.editorsDate : 13. Jul 2024, 17:08:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6u8qi$3lh0j$1@dont-email.me>
User-Agent : Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4
I'm reformatting some HTML files containing chapters of the KJV Bible.
My source follows the practice of italicizing some words.
I find italics distracting.
These occurrences are consistently of the form
<span class='add'>arbitrary_text</span>
I wish to delete "<span class='add'>" and *ASSOCIATED* "</span>".
Obviously it would not be wise to fully automate the action.
I wish to find all occurrences of <span class='add'>arbitrary_text</span> an manually confirm the edit.
In general, is it feasible?
Can KDE's Kate do it?
TIA