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

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

Re: Regex search and replace End Of line


From: Johan Bockgård
Subject: Re: Regex search and replace End Of line
Date: Sat, 30 Aug 2003 20:09:14 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (usg-unix-v)

"Herb Martin" <news@LearnQuick.com> writes:

> Goal:  Search for pattern at end of line and remove the
> pattern INCLUDING the line termination.
>
> example--------------------------------------------------------
> test text etc test text =
> some stuff
> test text etc test text =
> some stuff
> test text etc test text =
> some stuff

C-q is your friend:

C-M-% = C-q C-j RET RET

> -------------------result---------------------------------------
> test text etc test text some stuff
> test text etc test text some stuff
> test text etc test text some stuff
> ----------------------------------------------------------------

-- 
Johan Bockgård


reply via email to

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