Author: ph10 Date: To: Pcre-dev CC: ND Subject: Re: [pcre-dev] Unexpected result when zero-length global matching
and pattern contains \G
On Sun, 1 Jul 2018, I wrote:
> I have thought of a way of changing pcre2test but I have not tried it
> yet. Maybe later today, or tomorrow... If it works, I will then look at
> PCRE2_SUBSTITUTE_GLOBAL.
OK, I did manage to figure out an algorithm that handles this case (a
pattern that matches an empty string, but never at the starting offset)
in the same way as Perl. Both pcre2test and pcre2_substitute() have been
updated, and the patch is committed.