help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regex search and replace End Of line


From: Herb Martin
Subject: Regex search and replace End Of line
Date: Sat, 30 Aug 2003 17:32:07 GMT

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]