Re: [pcre-dev] Some inconsistency around \0
I have fixed the first bug, which was in the interpreter. JIT was already giving the right answer. The second is, as you say, not a bug but maybe the documentation could be clearer about what is "the matched string". Thank you for the report. Regards, Philip On Sun, 14 Feb 2021 at 15:40, ND via Pcre-dev wrote: > After some think I thought that second listing have no inconsistence. > You free to forget about it. > Let's consider only first one. > > -- > ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev > -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev
Re: [pcre-dev] Some inconsistency around \0
After some think I thought that second listing have no inconsistence. You free to forget about it. Let's consider only first one. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev
[pcre-dev] Some inconsistency around \0
Here is 2 pcretest listings: 1. PCRE2 version 10.35 2020-05-09 /a\K.(?0)*/ abac 0: bac Expected result: c Perl's result: c 2. /a\Kb/replace=-$0- ab 1: a-b- PCRE doc's says about $ substitutions: "The number may be zero to include the entire matched string." But really we can see that entire matched string "ab" is not included in substitution. So there is need to change either doc's or pcre2_substitute() behaviour -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev