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 RAA02552; Sat, 14 Dec 2002 17:40:37 +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 RAA02643 for ; Sat, 14 Dec 2002 17:40:35 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from sm212.163.com ([202.108.44.212]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBEGeW902088 for ; Sat, 14 Dec 2002 17:40:33 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by sm212.163.com (Postfix) with SMTP id D1BC41C6ADDE2 for ; Sun, 15 Dec 2002 00:40:28 +0800 (CST) Received: from 163.com (unknown [159.226.149.121]) by 192.168.1.212 (Coremail) with SMTP id eH8BAPxe+z2lD5V5.1 for ; Sun, 15 Dec 2002 00:40:28 +0800 (CST) Message-ID: <3DFBCF75.70207@163.com> Date: Sun, 15 Dec 2002 00:40:21 +0000 From: onlyclimb User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021005 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] ocamlpcre help Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Dear Caml List i have tried : let _ = let s ="Hello world" in let str = Pcre.replace ~pat:"\\b" ~templ:"?" s in print_string s ; print_newline() ; print_string str ; print_newline();; the result is localhost# ./try Hello world ?Hello?e?world? however in the mannul of pcre \b means word boundary so , i figure that the result maybe ?Hello? ?world? i dont know where comes the "e" in the middle? Thanks ------------------- 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