<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/5688e361e75097ac092c3d5bff9beae5"
  from="onlyclimb &lt;onlyclimb@1...&gt;"
  author="onlyclimb"
  date="2002-12-14T16:40:37"
  subject="[Caml-list] ocamlpcre help"
  prev="2002/12/9fa6c225f20604b6a6e0a6ac9afcb2c0"
  next="2002/12/5b7810db53976773cb6d0267fbabf2e5"
  next-in-thread="2002/12/5b7810db53976773cb6d0267fbabf2e5"
  prev-thread="2002/12/9fa6c225f20604b6a6e0a6ac9afcb2c0"
  next-thread="2002/12/c1c05f314ad9a12a76fe27ff77f36cd8"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] ocamlpcre help">
<msg 
  url="2002/12/5688e361e75097ac092c3d5bff9beae5"
  from="onlyclimb &lt;onlyclimb@1...&gt;"
  author="onlyclimb"
  date="2002-12-14T16:40:37"
  subject="[Caml-list] ocamlpcre help">
<msg 
  url="2002/12/5b7810db53976773cb6d0267fbabf2e5"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-12-14T17:48:12"
  subject="Re: [Caml-list] ocamlpcre help">
</msg>
</msg>
</thread>

<contents>
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

</contents>

</message>

