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. Philip -- Philip Hazel -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev
