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

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

Re: replacing non-printable character \377


From: Eli Zaretskii
Subject: Re: replacing non-printable character \377
Date: Thu, 24 Jan 2013 20:45:41 +0200

> Date: Thu, 24 Jan 2013 10:33:48 -0800 (PST)
> From: Owen McGonagle <address@hidden>
> 
> 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.)



reply via email to

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