From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: m121212 Newsgroups: gmane.emacs.help Subject: Re: regexp/emacs selective replace Date: Wed, 25 Nov 2009 03:58:22 -0800 (PST) Message-ID: <26511406.post@talk.nabble.com> References: <26478209.post@talk.nabble.com> <87skc3kokg.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259150882 14071 80.91.229.12 (25 Nov 2009 12:08:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 12:08:02 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 13:07:56 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDGf5-0007wX-7h for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 13:07:55 +0100 Original-Received: from localhost ([127.0.0.1]:48705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDGf1-0001hU-Hz for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 07:07:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDGVy-0006HT-2F for help-gnu-emacs@gnu.org; Wed, 25 Nov 2009 06:58:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDGVs-0006FU-U9 for Help-gnu-emacs@gnu.org; Wed, 25 Nov 2009 06:58:29 -0500 Original-Received: from [199.232.76.173] (port=57355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDGVs-0006FR-Lf for Help-gnu-emacs@gnu.org; Wed, 25 Nov 2009 06:58:24 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:55005) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDGVs-0002kc-25 for Help-gnu-emacs@gnu.org; Wed, 25 Nov 2009 06:58:24 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NDGVq-00081n-C6 for Help-gnu-emacs@gnu.org; Wed, 25 Nov 2009 03:58:22 -0800 In-Reply-To: <87skc3kokg.fsf@ergodik.univ-brest.fr> X-Nabble-From: m121212@mailinator.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70113 Archived-At: Thanks for your repsonses! The solution for me in the end was just to record a keyboard macro. Do you use a particular guide for regexps? Also, could you explain this part: {[^}]*} *$ RET ? M-x replace-regexp RET ^ *\\includegraphics{[^}]*} *$ RET \\begin{center} \& \\end{center} RET Thanks, m121212 -- View this message in context: http://old.nabble.com/regexp-emacs-selective-replace-tp26478209p26511406.html Sent from the Emacs - Help mailing list archive at Nabble.com.