From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(word 1)(word2)(word ...)"'? Date: Wed, 16 Mar 2011 20:24:25 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300303511 29929 80.91.229.12 (16 Mar 2011 19:25:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2011 19:25:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Heidrich Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 20:25:07 2011 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.69) (envelope-from ) id 1PzwLC-0005Pn-2x for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 20:25:06 +0100 Original-Received: from localhost ([127.0.0.1]:50194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzwLB-0008Ru-Hc for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 15:25:05 -0400 Original-Received: from [140.186.70.92] (port=35865 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzwKa-0008Qz-Jm for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 15:24:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzwKZ-0002RJ-Hp for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 15:24:28 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:48239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzwKZ-0002Qz-AT for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 15:24:27 -0400 Original-Received: from smtp01.web.de ( [172.20.0.243]) by fmmailgate03.web.de (Postfix) with ESMTP id 33944189D5CF8; Wed, 16 Mar 2011 20:24:26 +0100 (CET) Original-Received: from [91.35.170.71] (helo=[192.168.1.2]) by smtp01.web.de with asmtp (WEB.DE 4.110 #2) id 1PzwKY-0008Tj-00; Wed, 16 Mar 2011 20:24:26 +0100 In-Reply-To: X-Priority: 3 X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18c6YOzvQ8YodfsEwiCgrOeiyCSlvuhD+e/wAjv sYv8gyfl4mY6dY53FTTMlLTSiIeKu8/RHdBsyIg+EV6gqazb0p jb4MIJ8i0UuVGHsNlx8w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.234 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:80188 Archived-At: Am 16.03.2011 um 05:50 schrieb Peter Heidrich: > I still have not found the right search and replace terms in order =20 > to substitute a set of words starting and ending with quotes. Did you read about greedy and so greedy regular expressions? It's =20 mentioned in the GNU Emacs documentation about regexp's. You need to =20 use the non-greedy form or it would start with the first double-quote =20= in the line and end with its last one. -- Mit friedvollen Gr=FC=DFen Pete Wer nichts zu verbergen hat, hat schon alles verloren. (Juli Zeh)