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 KAA11044; Tue, 7 Oct 2003 10:11:01 +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 KAA20818 for ; Tue, 7 Oct 2003 10:11:00 +0200 (MET DST) Received: from smtp.web.de (smtp03.web.de [217.72.192.158]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h978Ax113478 for ; Tue, 7 Oct 2003 10:10:59 +0200 (MET DST) Received: from [212.227.35.69] (helo=schluck.use.schlund.de) by smtp.web.de with esmtp (WEB.DE 4.99 #448) id 1A6mvr-0001JT-00 for caml-list@inria.fr; Tue, 07 Oct 2003 10:10:59 +0200 Date: Tue, 07 Oct 2003 10:12:12 +0200 To: caml-list@inria.fr Subject: [Caml-list] Str.bounded_split behaviour... Reply-To: mwohlwend@web.de From: Michael Wohlwend Organization: - Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera7.20/Linux M2 build 449 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bounded:01 wohlwend:01 mwohlwend:01 bounded:01 regexp:01 behaviour:01 string:03 string:03 str:05 michael:08 michael:08 split:09 split:09 but:16 gives:17 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, is this correct: bounded_split (regexp "[ \t]+") " one two " 1 ;; gives: - : string list = ["one two "] but I thought that any occurrence of the delimiter at the beginning and at the end of the string is ignored? Michael ------------------- 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