From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: silly regexp-replace question: how to delete empty lines Date: Wed, 03 Mar 2004 20:11:20 GMT Organization: ~ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078548078 12036 80.91.224.253 (6 Mar 2004 04:41:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Mar 2004 04:41:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 06 05:41:10 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AzTcb-0006Hd-01 for ; Sat, 06 Mar 2004 05:41:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AzTba-0003f3-5U for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Mar 2004 23:40:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!in.100proofnews.com!in.100proofnews.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: "%FAKctgv3W?!Hs_=v:E>`B"a*, tA?s]>auK)kg%?~yY6XNrv|yM7cA_F[9}ZqMcy `g7R?.Sn+J1pu8b!Sk6f=E User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:NHzndyuQ9fw8f5aG6Z7UOjJ8vHI= Original-Lines: 23 Original-NNTP-Posting-Host: 216.62.199.3 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr11.news.prodigy.com 1078344680 ST000 216.62.199.3 (Wed, 03 Mar 2004 15:11:20 EST) Original-NNTP-Posting-Date: Wed, 03 Mar 2004 15:11:20 EST X-UserInfo1: [[PAPDCA[S@SSTX[KZD\_T@@USXHQD\MNPWZKB]MPXHJUZ]CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN Original-Xref: shelby.stanford.edu gnu.emacs.help:121454 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17424 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17424 >>>> 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 ---------------------