From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dave Pawson" Newsgroups: gmane.emacs.help Subject: Re: regex question Date: Mon, 3 Sep 2007 07:52:12 +0100 Message-ID: <711a73df0709022352y3b8b5fcch97313927830a7995@mail.gmail.com> References: <873axw2a3h.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188806193 32224 80.91.229.12 (3 Sep 2007 07:56:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2007 07:56:33 +0000 (UTC) To: "Tassilo Horn" , emac Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 03 09:56:31 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 1IS6nN-0004HD-RC for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Sep 2007 09:56:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS6nM-0007pp-M5 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Sep 2007 03:56:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IS6n8-0007pa-74 for help-gnu-emacs@gnu.org; Mon, 03 Sep 2007 03:56:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IS6n5-0007pO-RZ for help-gnu-emacs@gnu.org; Mon, 03 Sep 2007 03:56:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IS6n5-0007pL-Mo for help-gnu-emacs@gnu.org; Mon, 03 Sep 2007 03:56:11 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IS6n5-0002it-6T for help-gnu-emacs@gnu.org; Mon, 03 Sep 2007 03:56:11 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so845162rvf for ; Mon, 03 Sep 2007 00:56:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jJEwwkBG9PbuKnaxfEjYtcr+Y33jjfC4RE6suxgyHLM/lSFRWNmQwbdtwa3T/pIB6Lx1p9qtUH/YS2UYe7svtyF3mfIO4jOOz0fAs9QCRKtXj2AOgdzjPe5r1jyjDJYDHLGKb41K5QC21w8T/IGxOT5fIpY5+VlhvvV8zfrxYZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UzugznZG0ER0oXE5e8wuhj00jbFgml/xAhFuulGRngWdVxhX3SEhH0S63tOIq5AI31dCjEGTGemOTbSxXR5YMEmfQQMNK+2FcIejbk6fELgJFqLb9sLIWtlfKYFSL8u4gVSIfDuvdpsoBB91f3I+C0yUjskG+Qg+lCW/zahXQHM= Original-Received: by 10.141.18.14 with SMTP id v14mr1821404rvi.1188802332401; Sun, 02 Sep 2007 23:52:12 -0700 (PDT) Original-Received: by 10.141.3.17 with HTTP; Sun, 2 Sep 2007 23:52:12 -0700 (PDT) In-Reply-To: <873axw2a3h.fsf@baldur.tsdh.de> Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) 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:47140 Archived-At: On 02/09/07, Tassilo Horn wrote: > > I.e. I want to retain the group ([A-E]) > > so that the finished text reads 'try text>A > > > > Does emacs regex support groups please? > > Sure it does. > > M-x replace-regexp \(try\)\(\>.\) RET \1 text\2 RET \1 to insert the text! Yet another case where emacs can do it, just need to find out how! Many thanks Tassilo. No Harald, I'd tried the book and failed. I'll try the info file now. Thanks to you and Peter for the response. regard -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk