unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Regex search and replace End Of line
@ 2003-08-30 17:32 Herb Martin
  2003-08-30 18:10 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Herb Martin @ 2003-08-30 17:32 UTC (permalink / raw)


I know this must be easy but have yet to find it in
help:

Goal:  Search for pattern at end of line and remove the
pattern INCLUDING the line termination.

(Tried using several of the replace-regex functions
unsuccessfully.)

example--------------------------------------------------------
test text etc test text =
some stuff
test text etc test text =
some stuff
test text etc test text =
some stuff
-------------------result---------------------------------------
test text etc test text some stuff
test text etc test text some stuff
test text etc test text some stuff
----------------------------------------------------------------

FYI, it was mangled by email encoding.
--
Herb Martin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-30 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-30 17:32 Regex search and replace End Of line Herb Martin
2003-08-30 18:10 ` Johan Bockgård
2003-08-30 19:23   ` Herb Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).