caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: [Caml-list] ocamlpcre help
  2002-12-15  0:40 [Caml-list] ocamlpcre help onlyclimb
@ 2002-12-14 17:48 ` Markus Mottl
  0 siblings, 0 replies; 2+ messages in thread
From: Markus Mottl @ 2002-12-14 17:48 UTC (permalink / raw)
  To: onlyclimb; +Cc: caml-list

On Sun, 15 Dec 2002, onlyclimb wrote:
> 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 a lot for the report! This is a bug that appears in degenerate
cases when the matching part is actually of zero size. This is now fixed
in the distribution - please upgrade!

Regards,
Markus Mottl

-- 
Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Caml-list] ocamlpcre help
@ 2002-12-15  0:40 onlyclimb
  2002-12-14 17:48 ` Markus Mottl
  0 siblings, 1 reply; 2+ messages in thread
From: onlyclimb @ 2002-12-15  0:40 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-14 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-15  0:40 [Caml-list] ocamlpcre help onlyclimb
2002-12-14 17:48 ` Markus Mottl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).