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

Startseite
Nachricht löschen
Autor: ph10
Datum:  
To: ND
CC: Pcre-dev
Betreff: Re: [pcre-dev] Checking the PCRE2 version not work as expected
On Sun, 1 Jul 2018, ND via Pcre-dev wrote:

> PCRE2 version 10.31 2018-02-12
> /(?(VERSION>=10.04)yes|no)/
> yes
> No match


This is a bug, which I have now fixed. It was not reading fractions such
as .04 correctly.

> /(?(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).

Philip

--
Philip Hazel