Here is what I get in examples:


let _ =

  let pattern = "node" in

  let doc     = "httpsdjshdjshdjnodeshdsden" in   (* true *)
  let doc     = "skjdfjjeroiurt//lkj" in          (* false *)
  let doc     = "skjdf" in                        (* false *)
  let doc     = "skjdfg" in                       (* false *)
  let doc     = "hsgshsn" in                      (* ~flags:[`PARTIAL] =>  
Fatal error: exception Pcre.Error(0) *)
  let doc     = "http:gggggggggggg//spnnden" in   (* ~flags:[`PARTIAL] =>  
Fatal error: exception Pcre.Error(0) *)

  if Pcre.pmatch ~pat:pattern ~flags:[`PARTIAL]  doc then print_endline "true" 
else print_endline "false"


Rather looks like a true pcre-problem, not one of ocaml-pcre... ?!



Ciao,
   Oliver

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to