From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pBN1M1nc014187 for ; Fri, 23 Dec 2011 02:22:01 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au8BAGDX807AbSoIe2dsb2JhbABDhQ+nIyIBARYmBCGBcgEBBSNWEAsJEQIZDQICFBgxiA+lXJFUE4EciUozYwSNRoc6kjQ X-IronPort-AV: E=Sophos;i="4.71,396,1320620400"; d="scan'208";a="124385847" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Dec 2011 02:21:56 +0100 X-Envelope-From: oliver@first.in-berlin.de Received: from first (e178031165.adsl.alicedsl.de [85.178.31.165]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id pBN1LsMI029565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Dec 2011 02:21:54 +0100 Received: by first (Postfix, from userid 1000) id E1D5D1540357; Fri, 23 Dec 2011 02:21:53 +0100 (CET) Date: Fri, 23 Dec 2011 02:21:53 +0100 From: oliver To: =?utf-8?B?U3TDqXBoYW5l?= Glondu Cc: caml-list@inria.fr Message-ID: <20111223012153.GA16761@siouxsie> References: <20111222183914.GA6185@siouxsie> <4EF38AD4.10608@glondu.net> <20111222213956.GA8513@siouxsie> <4EF3B0BD.7040900@glondu.net> <20111223004530.GB12304@siouxsie> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20111223004530.GB12304@siouxsie> User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Re: [Caml-list] Fatal error: exception Pcre.Error(0) 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