From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <526FE8DB.5040709@gmx.de> References: <526FE8DB.5040709@gmx.de> Date: Wed, 30 Oct 2013 08:47:49 +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: 88afe9de-ead8-11e9-9d60-3106f5b1d025 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