From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: About regexp Date: Sun, 25 Nov 2012 07:41:33 -0800 Message-ID: References: <50B1DBEF.2040906@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353858124 24619 80.91.229.3 (25 Nov 2012 15:42:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2012 15:42:04 +0000 (UTC) To: "'xfq'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 16:42:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TceLU-0000ws-Ho for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2012 16:42:12 +0100 Original-Received: from localhost ([::1]:60897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TceLJ-0007iL-Dj for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2012 10:42:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TceL9-0007YH-R7 for help-gnu-emacs@gnu.org; Sun, 25 Nov 2012 10:41:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TceL8-0003HT-QL for help-gnu-emacs@gnu.org; Sun, 25 Nov 2012 10:41:51 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:22725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TceL8-0003HN-Iv for help-gnu-emacs@gnu.org; Sun, 25 Nov 2012 10:41:50 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qAPFflLl010215 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 25 Nov 2012 15:41:48 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qAPFfkZ7007854 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Nov 2012 15:41:46 GMT Original-Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qAPFfj47009309; Sun, 25 Nov 2012 09:41:46 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 25 Nov 2012 07:41:44 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <50B1DBEF.2040906@gmail.com> Thread-Index: Ac3LG+A5ns0gu0UnTH6+HCcjdThSSgABr5GA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87898 Archived-At: > The default value of the variable `sentence-end-base' is: > [.?!][]\"'")}]* > There is a backslash in the second part of the regexp, why? C-h v sentence-end-base tells you: sentence-end-base is a variable defined in `paragraphs.el'. Its value is "[.?!][]\"'")}]*" IOW, the value is a string. The double-quote chars shown surrounding the string are not characters in the string. The double-quote char shown just before the single-quote char, ', is in the string. When printed, that char is escaped with a backslash. The char in the string following the ' char is a different char (a curly quote) - it is not used to indicate the string limits, so it need not be escaped to distinguish it.