From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <526FE8DB.5040709@gmx.de> Date: Thu, 31 Oct 2013 16:21:10 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] acme/sam language question Topicbox-Message-UUID: 8915b8f4-ead8-11e9-9d60-3106f5b1d025 On 30 October 2013 08:47, Rudolf Sykora wrote: > On 29 October 2013 17:56, Friedrich Psiorz 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