Browse thread
ANNOUNCE: lablpcre-1.0 - a PCRE binding for Objective Caml
-
Robert Roessler
-
Eric Cooper
- Robert Roessler
- Markus Mottl
-
Eric Cooper
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 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