It works for me, but I found another inconsistency. I tried it on p9p and 9vx, both in acme and sam. 9vx acme is different form the others, for some reason. It does print the string between A and B, but prints it with CC and not with DD like sam and like p9p acme.
~Fritz Am 31.10.2013 16:21, schrieb Rudolf Sykora: > On 30 October 2013 08:47, Rudolf Sykora <rudolf.syk...@gmail.com> wrote: >> On 29 October 2013 17:56, Friedrich Psiorz <f.psi...@gmx.de> wrote: >>> this should do the trick >>> >>> /A/+#0;/B/-#0 >>> g/CC/ s/CC/DD/g >>> p >> >> Thanks for the suggestion, the g construct didn't come to my mind. >> However, it doesn't work for me: again, if CC is there, it works; >> if it's not, then the final dot only contains the match for the /A/ instead >> of the whole stretch from A to B. >> >> Ruda > > no other suggestions? > Thanks > Ruda >