From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: How to insert a string every 2 characters Date: Sat, 22 Aug 2015 19:03:10 +0200 Message-ID: <20150822170309.GA5295@tuxteam.de> References: <20150822144544.GA27850@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed X-Trace: ger.gmane.org 1440263012 4215 80.91.229.3 (22 Aug 2015 17:03:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2015 17:03:32 +0000 (UTC) Cc: Emacs Help To: Angus Comber Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 19:03:27 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZTCCU-0002UH-BN for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 19:03:26 +0200 Original-Received: from localhost ([::1]:47261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTCCT-0002ym-Mz for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 13:03:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTCCI-0002yV-Jt for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 13:03:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTCCF-0000Nb-Ah for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 13:03:14 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:47467 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTCCF-0000NV-4h for help-gnu-emacs@gnu.org; Sat, 22 Aug 2015 13:03:11 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ZTCCE-0001Ut-3D; Sat, 22 Aug 2015 19:03:10 +0200 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106772 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Aug 22, 2015 at 03:58:05PM +0100, Angus Comber wrote: > That didn't work quite how I wanted. It just replaces 2 characters with a > space. But I I did like this: > > c-m-% \(..\) > > and replace with \1 > > with a space after \1 that works. Gaah. Excuse my brain fart. I wanted to put \& where I put the right two dots. Your solution works fine as well, of course. Sorry. Dunno. Lack of sleep or something. - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEUEARECAAYFAlXYq00ACgkQBcgs9XrR2kYfHgCZATi61xTwg4HCnQGAYRx6lEIj Yz0AljzpoU0EMFzoZDSwaeQYiPu3aF0= =kNUj -----END PGP SIGNATURE-----