Re: [xslt] regexp extension?



On Sat, Dec 01, 2001 at 02:22:16PM +0000, Bjorn Reese wrote:
> Daniel Veillard wrote:
> 
> > I have a strong bias toward POSIX regexps
> [...]
> > http://www.delorie.com/gnu/docs/rx/rx_16.html
> 
> A better reference is
> 
>   http://www.opengroup.org/onlinepubs/7908799/xbd/re.html
> 
> (The Single UNIX Specification Version 2 is the successor of POSIX)
> 
> >   I think one can find a free implementation of those in any sane
> > Operating system, plus it's standard on the main ones.
> 
> The following provides a POSIX API
> 
>   http://www.pcre.org/

I love PCRE since it gives tou both, a POSIX compatible library
_and_ perlish extensions. A few things to consider: 

 - Licence. Iff used with GPL/LGPL software than this seems to
   be no problem because the licence (http://www.pcre.org/license.txt)
   states that in case of conflict GPL rules (yeah!).
   But for those that use LibXSLT/libXML under the alternative
   W3C IPR this would mean inclusion of another licence. Just some-
   thing to consider.

 - Multibyte string support. How well does the PCRE library handle this.
   I haven't used it in recent projects but recall that there was a
   pecularity using the repeat characters '+' and '*'. I'm sure
   Philip Hazel will work on this.

Ralf Mattes



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]