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 pBMJs5FL006349 for ; Thu, 22 Dec 2011 20:54:05 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8BAAaK806K54gDmWdsb2JhbABDhQ+kSYJXIgEBAQEBCAsLBxQlgXIBAQUjVhALDQ0CBSECAg8CRgYNAQcCh3ilYZFQgS+JSoEWBJUBhU8gjEQ X-IronPort-AV: E=Sophos;i="4.71,394,1320620400"; d="scan'208";a="124370033" Received: from unknown (HELO rouge.crans.org) ([138.231.136.3]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 22 Dec 2011 20:54:00 +0100 Received: from localhost (localhost.crans.org [127.0.0.1]) by rouge.crans.org (Postfix) with ESMTP id 765E1837E; Thu, 22 Dec 2011 20:53:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at crans.org Received: from rouge.crans.org ([10.231.136.3]) by localhost (rouge.crans.org [10.231.136.3]) (amavisd-new, port 10024) with LMTP id TuutHR4BVyDM; Thu, 22 Dec 2011 20:53:57 +0100 (CET) Received: from [192.168.39.1] (fbx.up7.fr [81.56.96.177]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by rouge.crans.org (Postfix) with ESMTPSA id 3D9AA82E7; Thu, 22 Dec 2011 20:53:57 +0100 (CET) Message-ID: <4EF38AD4.10608@glondu.net> Date: Thu, 22 Dec 2011 20:53:56 +0100 From: =?UTF-8?B?U3TDqXBoYW5lIEdsb25kdQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: oliver CC: caml-list@inria.fr References: <20111222183914.GA6185@siouxsie> In-Reply-To: <20111222183914.GA6185@siouxsie> X-Enigmail-Version: 1.1.2 OpenPGP: id=49881AD3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id pBMJs5FL006349 Subject: Re: [Caml-list] Fatal error: exception Pcre.Error(0) Le 22/12/2011 19:39, oliver a écrit : > where is there a documentation about these kind of errors from pcre-lib? > I'm using Pcre.pmatch, which should just give me a bool. See pcre.mli. Pcre.Error(0) is the raw representation of Partial (i.e. string only matched the pattern partially). By the way, in doubt, you can catch Pcre.Error and pattern-match on its argument. Cheers, -- Stéphane