From: Peter Lee <pete_lee@swbell.net>
Subject: Re: silly regexp-replace question: how to delete empty lines
Date: Wed, 03 Mar 2004 20:11:20 GMT [thread overview]
Message-ID: <uy8qhy9lp.fsf@swbell.net> (raw)
In-Reply-To: c23bnr$1u62$1@otis.netspace.net.au
>>>> leo writes:
leo> so i tried (replace-regexp "^$ " "ghdfg" nil nil nil) where the
leo> linefeed was type as C-q C-j. but it doesn't find anything.
The following works.
(replace-regexp "^
" "blank line
" nil nil nil)
---------------------
text is here
and here and
here
further text is here
an the endtext
---------------------
next prev parent reply other threads:[~2004-03-03 20:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
[not found] <200403040341.i243ftF7381474@e1.ny.us.ibm.com>
2004-03-04 4:07 ` Thomas L Roche
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=uy8qhy9lp.fsf@swbell.net \
--to=pete_lee@swbell.net \
/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.