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

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

Re: editing binary (hexa) data


From: Peter Dyballa
Subject: Re: editing binary (hexa) data
Date: Thu, 17 May 2007 17:29:04 +0200


Am 17.05.2007 um 11:09 schrieb Peter Tury:

Or perhaps you know some other mode for me?

In GNU Emacs 22 you can use query-replace-regexp or replace-regexp to convert between ASCII and numeric:

        M-x replace-regexp RET \(.\) RET \,(string-to-number \1)  RET

or such and back with

        M-x replace-regexp RET \([1-9][0-9]\)  RET \,(string (+ ?a \1)) RET

There are some "invisible" spaces in the expressions, and they're not tested ...

--
Greetings

  Pete

A lot of us are working harder than we want, at things we don't like to do. Why? ...In order to afford the sort of existence we don't care to live.
                                   -- Bradford Angier






reply via email to

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