From: Thomas L Roche <tlroche@us.ibm.com>
Subject: Re: silly regexp-replace question: how to delete empty lines
Date: Wed, 3 Mar 2004 23:07:37 -0500 [thread overview]
Message-ID: <OFE3C942E6.A12B1F9A-ON85256E4D.00148CF6-85256E4D.0016ABFB@us.ibm.com> (raw)
In-Reply-To: <200403040341.i243ftF7381474@e1.ny.us.ibm.com>
"leo" Wed, 3 Mar 2004 12:11:08 +1100
> in a buffer like
> text is here
> and here and
> here
> further text is here
> an the endtext
> i want to delete the two empty lines by an regexp-replace.
Umm ... do you know that you don't need a regexp? You can just do
> M-x replace-string
> C-q C-j C-q C-j
> C-q C-j
That being said,
> M-x replace-regexp
> C-q C-j C-q C-j
> C-q C-j
also works ... but you're not really replacing regexp, just a fixed
string.
next parent reply other threads:[~2004-03-04 4:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200403040341.i243ftF7381474@e1.ny.us.ibm.com>
2004-03-04 4:07 ` Thomas L Roche [this message]
2004-03-03 1:11 silly regexp-replace question: how to delete empty lines leo
2004-03-03 6:25 ` Barry Margolin
2004-03-03 6:36 ` Sacha Chua
2004-03-03 20:11 ` Peter Lee
2004-03-03 23:53 ` leo
2004-03-04 1:31 ` Johan Bockgård
2004-03-04 10:10 ` Alan Mackenzie
2004-03-03 23:16 ` Joe Fineman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OFE3C942E6.A12B1F9A-ON85256E4D.00148CF6-85256E4D.0016ABFB@us.ibm.com \
--to=tlroche@us.ibm.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.