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

Reply via email to