From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A41A6BB81 for ; Sat, 25 Dec 2004 01:57:25 +0100 (CET) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBP0vN7C008128 for ; Sat, 25 Dec 2004 01:57:24 +0100 Received: from [192.168.1.200] (ppp194-89.lns1.syd2.internode.on.net [203.122.194.89]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id iBP0v6Ga043441; Sat, 25 Dec 2004 11:27:07 +1030 (CST) Subject: Re: [Caml-list] Str.string_match incorrect From: skaller Reply-To: skaller@users.sourceforge.net To: "Christopher A. Watford" Cc: David Brown , William Lovas , caml-list@yquem.inria.fr In-Reply-To: <8008871f04122409405d1b9679@mail.gmail.com> References: <1103687369.6979.50.camel@pelican.wigram> <20041222074455.GA81342@trout> <20041222080009.GA4501@force.stwing.upenn.edu> <1103731044.6979.109.camel@pelican.wigram> <20041222165846.GA30503@old.davidb.org> <1103769192.3443.51.camel@pelican.wigram> <8008871f04122409405d1b9679@mail.gmail.com> Content-Type: text/plain Organization: Message-Id: <1103936225.6201.243.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 25 Dec 2004 11:57:05 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 41CCBAF3.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sourceforge:01 wrote:01 regexp:01 pcre:01 regexp:01 bool:01 glebe:01 ...:98 061:98 nsw:01 snail:02 2037:02 match:02 match:02 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: On Sat, 2004-12-25 at 04:40, Christopher A. Watford wrote: > Going by PCRE's documentation no idea why I would do that ... > Str.string_match (Str.regexp "a") "ab" 0 ;; > > And in PCRE /a/ matches "ab" or "aa" or "ba". # Str.string_match (Str.regexp "a") "xax" 0;; - : bool = false -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net