From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: case change in replacement text with regex-replace Date: Sat, 14 Apr 2007 22:01:59 +0200 Organization: The Church of Emacs Message-ID: <87y7kupvwo.fsf@debby.local.net> References: <461cc717$0$5074$ba4acef3@news.orange.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176580961 30384 80.91.229.12 (14 Apr 2007 20:02:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2007 20:02:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Le TeXnicien de Surface Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 22:02:35 2007 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 1HcoSB-0007qA-5O for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 22:02:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcoWa-0007xM-JP for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 16:07:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcoWM-0007wo-Gr for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 16:06:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcoWJ-0007sk-Ud for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 16:06:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcoWJ-0007se-Rt for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 16:06:51 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HcoRt-0005vq-2b for help-gnu-emacs@gnu.org; Sat, 14 Apr 2007 16:02:17 -0400 Original-Received: from [84.167.10.53] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML31I-1HcoRp3Nqn-00060Q; Sat, 14 Apr 2007 22:02:16 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1HcoRb-00018e-Dw; Sat, 14 Apr 2007 22:01:59 +0200 In-Reply-To: <461cc717$0$5074$ba4acef3@news.orange.fr> (Le TeXnicien de Surface's message of "Wed\, 11 Apr 2007 13\:31\:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Provags-ID: V01U2FsdGVkX1/SkSL/hWIYtqy+NGasjJt7Ilgcm/MddSb763W eUX1VwHqFssrIGuZKIjTQBtdkdZAfCwkGYZxhcdFm+wU5L+r1H nQMwv0Vvo2PHHn8TAdskNuS6ixwjqsL X-detected-kernel: Linux 2.6? (barebone, rare!) 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:42686 Archived-At: Le TeXnicien de Surface writes: > I capture text with the following regexp "\([^"]*\)" > and I would like the following: > if AB is the captured text, the replacement text is: AB ab Ab aB. I do not understand, your regexp catches all chars (including newlines) except `"' and your example has only two chars? -- Best wishes H. Dieter Wilhelm Darmstadt, Germany