Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ANNOUNCE: lablpcre-1.0 - a PCRE binding for Objective Caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-02-01 (00:13)
From: Robert Roessler <roessler@r...>
Subject: Re: [Caml-list] ANNOUNCE: lablpcre-1.0 - a PCRE binding for Objective Caml
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 

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