From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 5C331BC0B for ; Thu, 1 Feb 2007 01:13:27 +0100 (CET) Received: from smtp105.sbc.mail.mud.yahoo.com (smtp105.sbc.mail.mud.yahoo.com [68.142.198.204]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l110DPQt012074 for ; Thu, 1 Feb 2007 01:13:26 +0100 Received: (qmail 80241 invoked from network); 1 Feb 2007 00:13:24 -0000 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@69.230.187.64 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 1 Feb 2007 00:13:24 -0000 X-YMail-OSG: SYUPy.QVM1mwEOerPKyqqp4YLMVk3AaYqLXdMbEmJqA3UYpJugOW8tWUroNC3Z3aK1jRgfLZAfjBIyHbsfATJWxEnaCdNpUn4KPJJRZY5RiOopLMS90zBzqpa4Yu0AggEIUA2_qqjThleYZkZaPN7tqgLRLmtrkt Message-ID: <45C130A0.4060107@rftp.com> Date: Wed, 31 Jan 2007 16:13:20 -0800 From: Robert Roessler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070130 Mnenhy/0.7.4.0 SeaMonkey/1.5a MIME-Version: 1.0 To: Caml-list Subject: Re: [Caml-list] ANNOUNCE: lablpcre-1.0 - a PCRE binding for Objective Caml References: <45BD892A.7060700@rftp.com> <20070131151603.GA22962@localhost> In-Reply-To: <20070131151603.GA22962@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45C130A5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; pcre:01 posix:01 summarize:01 compares:01 markus:01 mottl's:01 pcre-ocaml:01 markus:01 posix:01 sub-patterns:01 pcre:01 accessor:01 1.0:98 28,:98 wrote:01 Eric Cooper wrote: > On Sun, Jan 28, 2007 at 09:42:02PM -0800, Robert Roessler wrote: >> LablPCRE provides simple and easy to use access to regular expression >> matching, offering a rich module-based interface based on PCRE's POSIX >> functions wrapper. > > Can you (or anyone familiar with both) summarize how this binding > compares to Markus Mottl's pcre-ocaml? Thanks. As Markus says, it does implement the POSIX API for regular expression matching and extraction of sub-patterns... but note that that just [here] controls the "level" of the interface: there is a regcomp function for compiling the patterns and a regexec call for matching a compiled pattern against a specific string. The full "language" of PCRE for matching and pattern specification is accepted. Further, LablPCRE adds an even lighter-weight regmatch function when all that is desired is a boolean answer on a match, as well as a set of substring extraction and [error] status info accessor functions. LablPCRE makes an effort to be a good GC-citizen by not holding references to anything it doesn't need to. :) Finally, LablPCRE supports PCRE 7.0 (or any of the releases back to 6.1). Robert Roessler roessler@rftp.com http://www.rftp.com