From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Qiang Newsgroups: gmane.emacs.help Subject: Regular expression match Date: Wed, 04 Nov 2009 22:02:12 -0700 (MST) Message-ID: <20091104.220212.235203964.mcknight0219@gmail.com> 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 1257397331 1491 80.91.229.12 (5 Nov 2009 05:02:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2009 05:02:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 06:02:04 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 1N5uTy-0006iR-KG for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 06:02:02 +0100 Original-Received: from localhost ([127.0.0.1]:40951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5uTx-00044M-Sj for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 00:02:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5uTZ-00043z-NN for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 00:01:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5uTU-0003zk-B9 for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 00:01:36 -0500 Original-Received: from [199.232.76.173] (port=60393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5uTU-0003zd-4g for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 00:01:32 -0500 Original-Received: from mail-px0-f183.google.com ([209.85.216.183]:35824) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5uTT-0004dJ-JG for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 00:01:31 -0500 Original-Received: by pxi13 with SMTP id 13so1320486pxi.28 for ; Wed, 04 Nov 2009 21:01:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:to:subject :from:x-mailer:mime-version:content-type:content-transfer-encoding; bh=VLa/5IL6sNd+savCY477wg/cpJAVR9mCkQtz7PHk6Y8=; b=lJtWcr3rJhV0sgd4NWezGCfZb73rJ3eaey1WarKjdaplBkUpTXE3fUujsczR0S2rVK YytkfXvyJFk4XmTr5bVp2SjxcoFOIEIGUBuPJVac14fvPEDg9CcIlCdJwj1HsXqFLBUt B9stDVnJ6FqSr2DBUl6IK9+eZ+8bICt8lT3RQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:to:subject:from:x-mailer:mime-version:content-type :content-transfer-encoding; b=JzL7tBaU0DntcH6j8PUU4iAQSXUyq+JcvWO4osUs1cnx7ZS5QVr0hHvcjm9eb2pjn5 RGhSODR+kkC/FUYm8KbQXpNKkNoJu3lzrcieJdK0vB/jaWroumVNmP9wmd7RkwUA9U3g +LHD/H/fZUj6YAhMsWzG3YvG3WYQ3e1R+qfqk= Original-Received: by 10.115.39.23 with SMTP id r23mr4085619waj.2.1257397290215; Wed, 04 Nov 2009 21:01:30 -0800 (PST) Original-Received: from localhost (d75-159-224-76.abhsia.telus.net [75.159.224.76]) by mx.google.com with ESMTPS id 22sm988953pzk.10.2009.11.04.21.01.28 (version=SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 21:01:29 -0800 (PST) X-Mailer: Mew version 6.2.52 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: GNU/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:69482 Archived-At: Hi I am trying to use regular expression in Emacs. And I have question about how to return the matched item. For example, I want to match and return '8' in the string 'Vol.8'. How can I achieve that ? Thanks