* replacing non-printable character \377
@ 2013-01-24 18:33 Owen McGonagle
2013-01-24 18:45 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Owen McGonagle @ 2013-01-24 18:33 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
Hi,
I am looking for a simple replace-regexp command that will replace all my
non-printable characters that show up as \377 with the single character 'u'
I have searched around for a good example - maybe it is my limited understanding
of regular expressions - I have tried a few, with no luck.
Thanks in advance.
Owen.
[-- Attachment #2: Type: text/html, Size: 895 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: replacing non-printable character \377
2013-01-24 18:33 replacing non-printable character \377 Owen McGonagle
@ 2013-01-24 18:45 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2013-01-24 18:45 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Thu, 24 Jan 2013 10:33:48 -0800 (PST)
> From: Owen McGonagle <omcgonagle@yahoo.com>
>
> I am looking for a simple replace-regexp command that will replace all my
> non-printable characters that show up as \377 with the single character 'u'
> I have searched around for a good example - maybe it is my limited understanding
> of regular expressions - I have tried a few, with no luck.
If you need to replace a single character, why do you need to use
regexps?
Doesn't "M-% C-q 377 RET u RET" do the job? (You may need to visit
the file with "M-x find-file-literally RET" for this to work.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-24 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 18:33 replacing non-printable character \377 Owen McGonagle
2013-01-24 18:45 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.