Fair enough, thank you.

On Wed, 21 Jun 2023 at 11:20, Ihor Radchenko <yantar92@posteo.net> wrote:
bobf32@gmail.com writes:

> ...
> I expect two replacements to be made, and all the invisible text to be
> ignored. What actually happens is that the text is appended to all lines
> under the ** B and ** C headings plus the two desired headings
> themselves.

Canceled.
It is a bug in Emacs.
See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64178

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>