From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Fredstone Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Wed, 09 Dec 2009 11:08:03 -0800 Message-ID: <87my1sq830.fsf@not.no> References: <4b1d1a48$0$278$14726298@news.sunsite.dk> <4b1d1e3d$0$276$14726298@news.sunsite.dk> <4B1D6773.3000509@easy-emacs.de> <4B1F5A38.1030703@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1260465664 11391 80.91.229.12 (10 Dec 2009 17:21:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2009 17:21:04 +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 Dec 10 18:20:58 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 1NImhC-00085B-KH for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 18:20:54 +0100 Original-Received: from localhost ([127.0.0.1]:33838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NImhC-0000nT-84 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 12:20:54 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 09 Dec 2009 13:08:03 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:F6FQc0on5AWDV8X0Rccxo4deVXM= Original-Lines: 20 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-PiFAnvw3vOrl1yCZaerTjipLTnZoSUfUlizRx1Meu7MEclzgeoUwZy+wTsxhoAxse3tvp2g3IzTevGL!c1SAN6JsNKY2ptu1kIwPWo1NjLHpoRQi0AwYHebPhA== Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:175460 X-Mailman-Approved-At: Thu, 10 Dec 2009 12:15:33 -0500 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:70560 Archived-At: Andreas Röhler writes: > Aren't > > (string-match "" "a") > > and > > (string-match "" "") > > different cases in some perspective? You can think of it like this: If you line up 3 boxes left to right, where among them are there no boxes? There are no boxes before the first, between the first and the second, between the second and the third and after the last. The first place (position left to right) where there are no boxes, is before the first (position 0).