From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim Haynes Newsgroups: gmane.emacs.help Subject: Re: gnu regex and newline Date: Mon, 18 Nov 2002 22:03:17 +0000 Organization: What's Organization? Sender: help-gnu-emacs-admin@gnu.org Message-ID: <861y5i8riy.fsf@potato.vegetable.org.uk> References: Reply-To: news_reply@stirfried.vegetable.org.uk NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037658625 22225 80.91.224.249 (18 Nov 2002 22:30:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 22:30:25 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18DuO2-0005fe-00 for ; Mon, 18 Nov 2002 23:28:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18DuOO-00064w-00; Mon, 18 Nov 2002 17:29:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-05!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!potato.vegetable.org.uk!spodzone!not-for-mail Original-Newsgroups: gnu.emacs.help X-Anti-Echelon: AMW User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu) Cancel-Lock: sha1:2asABNrAZkhwPaJ7BL7R8e+ss3g= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 17 Original-Xref: shelby.stanford.edu gnu.emacs.help:107175 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3724 Peter Lee writes: > Is there a way to search for and replace newlines with emacs using regex? > Been looking through the documentation and I thought there would be some > escape char like \n or something. Use C-j - optionally quoted, so: M-x replace-regexp stuff C-q C-j stuff RET replacementstuff RET HTH, ~Tim -- Statistically, most thieves steal |piglet@stirfried.vegetable.org.uk from other poor people. Robin Hood stole |http://spodzone.org.uk/ only from the rich and was a hero. | (from ) |