From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Tue, 8 Dec 2009 12:31:16 +0100 Message-ID: <21FFF972-3740-407A-B877-0A928E4037B6@Web.DE> References: <4b1d1a48$0$278$14726298@news.sunsite.dk> <4b1d1e3d$0$276$14726298@news.sunsite.dk> <4B1D6773.3000509@easy-emacs.de> <4B1E2F7D.7060607@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260271961 1186 80.91.229.12 (8 Dec 2009 11:32:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2009 11:32:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Barry Margolin To: =?ISO-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 12:32:33 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 1NHyIx-000898-6P for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 12:32:31 +0100 Original-Received: from localhost ([127.0.0.1]:37119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHyIw-0002Sx-RD for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Dec 2009 06:32:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHyI2-0002KK-Qi for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 06:31:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHyHw-0002Eq-Ja for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 06:31:32 -0500 Original-Received: from [199.232.76.173] (port=38731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHyHw-0002Eh-5W for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 06:31:28 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:44936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHyHv-0003ti-Os for help-gnu-emacs@gnu.org; Tue, 08 Dec 2009 06:31:28 -0500 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id D90C0137D4A2C; Tue, 8 Dec 2009 12:31:19 +0100 (CET) Original-Received: from [91.35.207.160] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #314) id 1NHyHn-0000hV-00; Tue, 08 Dec 2009 12:31:19 +0100 In-Reply-To: <4B1E2F7D.7060607@easy-emacs.de> X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19OrLi69hDNeTmf+u57Mwji9AjFfrDsqvlzlE4D 5BqQPOxF17LSRl1O6WPac1yaLvCr1KKU7E9O1NR4C9yUZ2zBzI 8W+FTZD1gqfQDdXqSaQg== X-detected-operating-system: by monty-python.gnu.org: Error: [-] ERROR: /var/run/p0f.sock: Connection refused 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:70497 Archived-At: Am 08.12.2009 um 11:50 schrieb Andreas R=F6hler: > Barry Margolin wrote: >> In article , >> Matthew Dempsky matthew dempsky wrote: >> >> Here's another example of a limit case: >> >> (string-match "a*" "b") returns 0, because a* matches zero or more =20= >> a's, >> and there are zero a's at position 0. >> > > Hmm, interesting > > IMHO that differs: > > (string-match "a*" "b") asks for a non-occurrence too. So "0" of =20 > first position is plausible. Aren't the regular expressions "" and "a*" equivalent in that respect =20= that they both also match the empty string? -- Mit friedvollen Gr=FC=DFen Pete Sending unsolicited commercial eMail to this account incurs a fee of =80 = =20 500 per message and acknowledges the legality of this contract.