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 QAA08273; Sun, 29 Dec 2002 16:42:57 +0100 (MET) 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 QAA08238 for ; Sun, 29 Dec 2002 16:42:55 +0100 (MET) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBTFgsH13327 for ; Sun, 29 Dec 2002 16:42:55 +0100 (MET) Received: from tw304h3 oleg_inconnu@smtp-send.myrealbox.com [156.111.84.180] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.22 $ on Novell NetWare via secured & encrypted transport (TLS); Sun, 29 Dec 2002 08:44:46 -0700 Content-Type: text/plain; charset="us-ascii" From: Oleg To: caml-list@inria.fr Subject: [Caml-list] PCRE Date: Sun, 29 Dec 2002 10:42:48 -0500 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212291042.49347.oleg_inconnu@myrealbox.com> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi I'm new to PCRE. Can anyone explain to me why the output of # open Pcre;; # version;; - : string =3D "3.4 22-Aug-2000" # full_split ~pat:"^(\\w+)(,(\\w+))*$" "a,b,c,d";; - : Pcre.split_result list =3D [Delim "a,b,c,d"; Group (1, "a"); Group (2, ",d"); Group (3, "d")] does not contain Group(3, "b") and Group(3, "c") ? Similarly, I expected=20 # full_split ~pat:"S(a\\d)+" "Sa1a2";; - : Pcre.split_result list =3D [Delim "Sa1a2"; Group (1, "a2")] to produce [Delim "Sa1a2"; Group(1, "a1"); Group (1, "a2")] The above uses the latest pcre-ocaml-4.31.0. Thanks Oleg ------------------- 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