Συντάκτης: Giuseppe D'Angelo Ημερομηνία: Προς: pcre-dev Υ/ο: nadenj Αντικείμενο: 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...)