From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "leo" Newsgroups: gmane.emacs.help Subject: Re: silly regexp-replace question: how to delete empty lines Date: Thu, 4 Mar 2004 10:53:31 +1100 Organization: Netspace Internet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078573292 14959 80.91.224.253 (6 Mar 2004 11:41:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Mar 2004 11:41:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 06 12:41:23 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 1AzaBH-0000V5-00 for ; Sat, 06 Mar 2004 12:41:23 +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 1AzaAi-000624-JV for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Mar 2004 06:40:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!cyclone-sf.pbi.net!216.196.106.144!border2.nntp.sjc.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.netspace.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: dsl-210-15-204-246.nsw.netspace.net.au Original-X-Trace: otis.netspace.net.au 1078357988 93082 210.15.204.246 (3 Mar 2004 23:53:08 GMT) Original-X-Complaints-To: usenet@otis.netspace.net.au Original-NNTP-Posting-Date: Wed, 3 Mar 2004 23:53:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-Xref: shelby.stanford.edu gnu.emacs.help:121457 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:17432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17432 thanks peter now i recall: i guess, the fact that "^[C-j]" works but "^$[C-j]" doesn't, is kind of a regexp bug/feature in emacs, isn't it? cheers, leo "Peter Lee" wrote in message news:uy8qhy9lp.fsf@swbell.net... > >>>> 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 > > --------------------- >