Re: [pcre-dev] Checking the PCRE2 version not work as expect…

Top Page
Delete this message
Author: Giuseppe D'Angelo
Date:  
To: pcre-dev
CC: nadenj
Subject: Re: [pcre-dev] Checking the PCRE2 version not work as expected
Hello,

On Mon, 2 Jul 2018 at 14:29, <ph10@???> wrote:
>
> > /(?(VERSION>=10.4)yes|no)/
> > yes
> > No match
> >
> >
> > I expect match in both cases.
>
> The second one is correct. 10.31 is not greater than 10.4 (treated as
> 10.40).


Is VERSION documented somewhere? I can't find it mentioned in
pcresyntax. If it's for comparing PCRE version, ideally it should do
version-aware comparison (or PCRE itself should use different version
numbering scheme...)

Cheers,
--
Giuseppe D'Angelo