unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: Regex search and replace End Of line
Date: Sat, 30 Aug 2003 20:10:25 +0200	[thread overview]
Message-ID: <yoij7k4vggoe.fsf@frealaf.dd.chalmers.se> (raw)
In-Reply-To: rc54b.20624$_B.1121119@twister.austin.rr.com

"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:

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	other threads:[~2003-08-30 18:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-30 17:32 Regex search and replace End Of line Herb Martin
2003-08-30 18:10 ` Johan Bockgård [this message]
2003-08-30 19:23   ` Herb Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yoij7k4vggoe.fsf@frealaf.dd.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).