Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocamlpcre help
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-12-14 (16:40)
From: onlyclimb <onlyclimb@1...>
Subject: [Caml-list] ocamlpcre help
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 ;

the result is
localhost# ./try
Hello 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?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: