From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA16786; Fri, 28 May 2004 14:00:56 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA15368 for ; Fri, 28 May 2004 14:00:55 +0200 (MET DST) Received: from mta1.cl.cam.ac.uk (mta1.cl.cam.ac.uk [128.232.0.15]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4SC0sSH001632 for ; Fri, 28 May 2004 14:00:54 +0200 Received: from astrocyte.cl.cam.ac.uk ([128.232.8.107] helo=cl.cam.ac.uk ident=[f+77e934JtYbvsYwXmK3qsSM7hBCwQWa]) by mta1.cl.cam.ac.uk with esmtp (Exim 3.092 #1) id 1BTg2b-00048U-00; Fri, 28 May 2004 13:00:49 +0100 X-Mailer: exmh version 2.6.3-CL 04/04/2003 with nmh-1.0.4 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: cslists/caml To: brogoff Cc: caml-list@inria.fr Subject: Re: [Caml-list] unix.chop_extension In-reply-to: Your message of "Thu, 27 May 2004 10:29:03 PDT." Mime-Version: 1.0 Content-Type: text/plain Date: Fri, 28 May 2004 13:00:45 +0100 From: Keith Wansbrough Message-Id: X-Miltered: at concorde with ID 40B729F6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 chop:01 match:02 unix:02 interface:03 exceptions:04 extension:10 substrings:12 but:16 it's:20 keith:20 keith:20 failed:21 considering:76 empty:23 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > interface to use substrings, eliminating Not_found exceptions by considering > an empty substring to be a failed match. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ It's not clear that this is always the right thing to do... \([0-9]*\) can succeed but return an empty substring. --KW 8-) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners