From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id E5241BB81 for ; Thu, 23 Dec 2004 03:09:47 +0100 (CET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iBN29j1a021323 for ; Thu, 23 Dec 2004 03:09:47 +0100 Received: from [192.168.1.200] (ppp194-89.lns1.syd2.internode.on.net [203.122.194.89]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id iBN29GRF033847; Thu, 23 Dec 2004 12:39:17 +1030 (CST) Subject: Re: [Caml-list] Str.string_match incorrect From: skaller Reply-To: skaller@users.sourceforge.net To: Kurt Welgehausen Cc: caml-list@yquem.inria.fr In-Reply-To: <41C9AE33.mailBIK17BLGN@kwel.net> References: <1103687369.6979.50.camel@pelican.wigram> <20041222074455.GA81342@trout> <20041222080009.GA4501@force.stwing.upenn.edu> <1103731044.6979.109.camel@pelican.wigram> <41C9AE33.mailBIK17BLGN@kwel.net> Content-Type: text/plain Organization: Message-Id: <1103767755.3443.26.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 23 Dec 2004 13:09:16 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 41CA28E9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sourceforge:01 wrote:01 python's:01 pcre:01 semantics:01 ocaml:01 glebe:01 26,:98 061:98 nsw:01 behaviour:01 snail:02 2037: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 Thu, 2004-12-23 at 04:26, Kurt Welgehausen wrote: > Str.string_match is almost exactly the same as Python's > re.match: Which is based on PCRE. I checked the Python documentation and it is *also* incorrect for the same reason. I do not care what the expected behaviour is, provided the documentation describes the semantics, and in this case both Ocaml and Python have it wrong. -- 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