help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to insert a string every 2 characters


From: Emanuel Berg
Subject: Re: How to insert a string every 2 characters
Date: Sun, 23 Aug 2015 23:43:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Angus Comber <address@hidden> writes:

> If I have a string of characters like this:
>
> 0102030405
>
> I want to transform into:
>
> 01 02 03 04 05

(replace-regexp-in-string "\\(..\\)" "\\1 " "0102030405")

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]