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: regex question Date: Sun, 2 Sep 2007 18:11:48 +0100 Message-ID: <711a73df0709021011w4a8a26fegacdd17e365319bd7@mail.gmail.com> 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 1188753136 5434 80.91.229.12 (2 Sep 2007 17:12:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2007 17:12:16 +0000 (UTC) To: emac Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 19:12:15 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 1IRszZ-0004NW-O4 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 19:12:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRszY-0000fE-Nh for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 13:12:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRszL-0000f0-5B for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 13:11:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRszG-0000dE-Pa for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 13:11:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRszG-0000dA-Hj for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 13:11:50 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRszG-0004wN-9X for help-gnu-emacs@gnu.org; Sun, 02 Sep 2007 13:11:50 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so729573rvf for ; Sun, 02 Sep 2007 10:11:48 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=CaUsjOFOCzF2MBiW7TtYTOnIhMAkRfym/Ev5hwqT1h0N4/Q1FZvvZIQpaWwDcnxIzJQBTBofwxAYD/j5abovJ8HDO4u2jh7nJz57Qkfj/CFV3pPUrntn/hRJCO7cMdwSEyZvBUeqLXYW8lFANgIxwgbzW1OxGAv8dUmm5y/QRZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=axGTxpHyVxJrFUzTTwz2ZQsctzuOjfFBGTHqugbPoI1z8zZn9HwW3c3v7kjPz+cvmSrBDoc8+ehUC+Z3ywsnpHxHYCuEJzXQezjLm3wjNStGWXKPdzsmkzpBcVKaoyE+/P1cASwjUmjPnsf9fylOyDzKxdBOujJBtg/RjivDHhU= Original-Received: by 10.141.167.5 with SMTP id u5mr1622381rvo.1188753108624; Sun, 02 Sep 2007 10:11:48 -0700 (PDT) Original-Received: by 10.141.3.17 with HTTP; Sun, 2 Sep 2007 10:11:48 -0700 (PDT) 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:47100 Archived-At: I have text reading 'try>Letter' e.g. 'try[A' and I want to do a search/replace using regex. I want to replace it with 'try text>A 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? TIA -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk