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 VAA28367; Sun, 24 Nov 2002 21:02:09 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA28478 for caml-list@pauillac.inria.fr; Sun, 24 Nov 2002 21:02:08 +0100 (MET) 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 RAA24846 for ; Sun, 24 Nov 2002 17:26:05 +0100 (MET) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gAOGQ4X25195 for ; Sun, 24 Nov 2002 17:26:04 +0100 (MET) Received: from unas.demon.co.uk ([80.177.6.224] helo=hilbert.house) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 18FzZd-0002C6-0U for caml-list@inria.fr; Sun, 24 Nov 2002 16:25:33 +0000 Received: by hilbert.house (Postfix, from userid 1001) id CFF8BF784; Sun, 24 Nov 2002 16:25:31 +0000 (GMT) Date: Sun, 24 Nov 2002 16:25:31 +0000 From: Ceri Storey To: caml-list@inria.fr Subject: [Caml-list] Pcre Confusion. Message-ID: <20021124162531.GE4857@hilbert.house> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi. I don't understand how pcre_full split is supposed to return Group results: # let rex = regexp "([A-Z][a-z]*)|([0-9]+)";; val rex : Pcre.regexp = # Pcre.full_split ~rex:rex "Foo bar 42";; - : Pcre.split_result list = [Delim "Foo"; Group (1, "Foo"); NoGroup; Text " bar "; Delim "42"] I don't see why there's no Group for the last Delim. If someone could enlighten me, I'd be most grateful :) -- Ceri Storey ------------------- 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