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

Top Page
Delete this message
Author: ph10
Date:  
To: ND
CC: Pcre-dev
Subject: 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