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

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

Re: replacing some special characters


From: Andreas Politz
Subject: Re: replacing some special characters
Date: Thu, 11 Feb 2010 15:46:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Pete Siemsen <siemsen@ucar.edu> writes:

> I have a buffer that contains mostly normal characters, but has some weird 
> characters.  I simply want to replace all occurrences of the weird characters 
> with spaces.  I'd like to use replace-regexp to do it, but I don't know how 
> to specify the weird characters.  When I place the cursor on one of the weird 
> characters and execute describe-char, I get
>
>         character:   (160, #o240, #xa0)
[...]
>
> I've tried using \o240 and \xA0, with no luck.  How can I get replace-regexp 
> to match the special characters?
>
> -- Pete

C-q 240 C-u

Or maybe the hexvalue, it depends on some variable.  Alternatively you
could kill/yank the character.

-ap





reply via email to

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