Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #270601
| From | Lee <ler762@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Need help with narroely focused use case of Emacs |
| Date | 2024-06-29 18:10 +0200 |
| Message-ID | <IUIOe-6tyI-7@gated-at.bofh.it> (permalink) |
| References | <IUp8S-6gVm-9@gated-at.bofh.it> <IUqRj-6hMu-1@gated-at.bofh.it> <IUwWJ-6lBQ-3@gated-at.bofh.it> <IUEhM-6qLW-337@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, > > So you may prefer to use regexes as > > Murphy intended, handling both the opening and closing tags at the same > > time, leaving the intervening text intact. > > In this particular case I suspect it would become overly complex. > I've already discovered that the order of edits is important. I guess it depends on what you're used to. I don't think this bit is overly complex .. your opinion might be different $ cat /tmp/z cat /dev/null > txtfile.html for v in $(seq 1 12); do echo '<span class="verse" id="V'$v'"> text text text </span>' >> txtfile.html; done sed -Ei.bak 's@<span class="verse" id="V[[:digit:]]+">([^<]*)</span>@<sup>\1</sup>@g' txtfile.html $ bash z $ cat txtfile* <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <sup> text text text </sup> <span class="verse" id="V1"> text text text </span> <span class="verse" id="V2"> text text text </span> <span class="verse" id="V3"> text text text </span> <span class="verse" id="V4"> text text text </span> <span class="verse" id="V5"> text text text </span> <span class="verse" id="V6"> text text text </span> <span class="verse" id="V7"> text text text </span> <span class="verse" id="V8"> text text text </span> <span class="verse" id="V9"> text text text </span> <span class="verse" id="V10"> text text text </span> <span class="verse" id="V11"> text text text </span> <span class="verse" id="V12"> text text text </span> $ Regards, Lee
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-28 21:10 +0200
Re: Need help with narroely focused use case of Emacs didier gaumet <didier.gaumet@gmail.com> - 2024-06-28 21:20 +0200
Re: Need help with narroely focused use case of Emacs <tomas@tuxteam.de> - 2024-06-29 07:00 +0200
Re: Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-29 12:10 +0200
Re: Need help with narroely focused use case of Emacs Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-06-28 23:00 +0200
Re: Need help with narroely focused use case of Emacs Charles Curley <charlescurley@charlescurley.com> - 2024-06-29 05:30 +0200
Re: Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-29 13:20 +0200
Re: Need help with narroely focused use case of Emacs Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-06-29 15:50 +0200
Re: Need help with narroely focused use case of Emacs Andy Smith <andy@strugglers.net> - 2024-06-29 16:20 +0200
Re: Need help with narroely focused use case of Emacs Lee <ler762@gmail.com> - 2024-06-29 18:10 +0200
Re: Need help with narroely focused use case of Emacs Greg Wooledge <greg@wooledge.org> - 2024-06-29 14:50 +0200
Re: Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-29 13:00 +0200
Re: Need help with narroely focused use case of Emacs debian-user@howorth.org.uk - 2024-06-29 14:00 +0200
Re: Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-29 15:00 +0200
Re: Need help with narroely focused use case of Emacs Dan Ritter <dsr@randomstring.org> - 2024-06-29 14:10 +0200
Re: Need help with narroely focused use case of Emacs Greg Wooledge <greg@wooledge.org> - 2024-06-29 15:00 +0200
Re: Need help with narroely focused use case of Emacs Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-06-29 15:50 +0200
Re: Need help with narroely focused use case of Emacs Curt <curty@free.fr> - 2024-06-29 18:10 +0200
Re: Need help with narroely focused use case of Emacs <tomas@tuxteam.de> - 2024-06-29 19:00 +0200
Re: Need help with narroely focused use case of Emacs Curt <curty@free.fr> - 2024-06-29 19:50 +0200
Curt having his fits [was: Need help with narroely focused use case of Emacs] <tomas@tuxteam.de> - 2024-06-29 20:00 +0200
Re: Curt having his fits [was: Need help with narroely focused use case of Emacs] Curt <curty@free.fr> - 2024-06-29 20:50 +0200
Re: Curt having his fits [was: Need help with narroely focused use case of Emacs] Richard <rrosner5@gmail.com> - 2024-06-30 01:00 +0200
Re: Curt having his fits [was: Need help with narroely focused use case of Emacs] Greg Wooledge <greg@wooledge.org> - 2024-06-30 01:10 +0200
Re: Curt having his fits [was: Need help with narroely focused use case of Emacs] Will Mengarini <seldon@eskimo.com> - 2024-06-30 01:40 +0200
Re: Curt having his fits Geert Stappers <stappers@stappers.nl> - 2024-06-30 11:50 +0200
Eric Naggum [was: Curt having his fits] <tomas@tuxteam.de> - 2024-06-30 14:00 +0200
Re: Need help with narroely focused use case of Emacs Vincent Lefevre <vincent@vinc17.net> - 2024-06-29 17:10 +0200
Re: Need help with narroely focused use case of Emacs David Wright <deblis@lionunicorn.co.uk> - 2024-06-29 21:00 +0200
Re: Need help with narroely focused use case of Emacs <tomas@tuxteam.de> - 2024-06-29 06:50 +0200
Re: Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-29 13:40 +0200
Re: Need help with narroely focused use case of Emacs <tomas@tuxteam.de> - 2024-06-29 19:20 +0200
Solution [Re: Need help with narroely focused use case of Emacs] Richard Owlett <rowlett@access.net> - 2024-07-05 14:10 +0200
Re: Need help with narroely focused use case of Emacs Max Nikulin <manikulin@gmail.com> - 2024-06-29 13:40 +0200
Re: Need help with narroely focused use case of Emacs Max Nikulin <manikulin@gmail.com> - 2024-06-29 17:10 +0200
Re: Need help with narroely focused use case of Emacs Greg Wooledge <greg@wooledge.org> - 2024-06-29 21:30 +0200
Re: Need help with narroely focused use case of Emacs Greg Wooledge <greg@wooledge.org> - 2024-06-30 15:30 +0200
Re: Need help with narroely focused use case of Emacs Andy Smith <andy@strugglers.net> - 2024-06-30 16:00 +0200
Re: Need help with narroely focused use case of Emacs Richard Owlett <rowlett@access.net> - 2024-06-29 12:10 +0200
csiph-web