Re: [xslt] regexp extension?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] regexp extension?
- Date: Fri, 30 Nov 2001 11:50:17 -0500
On Fri, Nov 30, 2001 at 11:01:40AM -0500, Bruce Miller wrote:
> Hi all;
> Has anyone thought about implementing the regexp extension?
> (or already started !?!)
Not that I know,
> I'd be willing to try my hand at writing the glue (presumably
> libexslt/regexp.c) providing there were an acceptable regexp
> library to base it on. (I'm not in the mood to implement a
> regexp library :>)
Oh, really ;-) ?
> It doesn't appear that there already is such a library being
> used in libxml or libxslt, unless I'm missing it. Using one
Exact, so far I avoided depending on one, this makes the validation
code ... interesting :-)
> would add an additional dependence, but someone handy with
> configure could probably make the regexp extension enabled
> only if an appropriate library is present?
Yep sounds doable and reasonable in the framework of EXSLT.
> At any rate, unless there's already such an extension in the
> works, does anyone have a recommendation for which regexp
> library would be best to use?
I have a strong bias toward POSIX regexps
-----------------------------------------------------
REGCOMP(3) Linux Programmer's Manual REGCOMP(3)
NAME
regcomp, regexec, regerror, regfree - POSIX regex func
tions
SYNOPSIS
#include <regex.h>
int regcomp(regex_t *preg, const char *regex, int cflags);
int regexec(const regex_t *preg, const char *string,
size_t nmatch, regmatch_t pmatch[], int
eflags);
size_t regerror(int errcode, const regex_t *preg, char
*errbuf, size_t errbuf_size);
void regfree(regex_t *preg);
-----------------------------------------------------
http://www.delorie.com/gnu/docs/rx/rx_16.html
-----------------------------------------------------
I think one can find a free implementation of those in any sane
Operating system, plus it's standard on the main ones.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]