🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189107

Re: Removal of non-printable characters

#189107
From: Josh Mittleman
Date: Thu, 02 May 1991 15:11
18 lines
1470 bytes
In article <19148@crdgw1.crd.ge.com>, halvers@altair.crd.ge.com (Pete
Halverson) writes:
> In article <1991May1.154743.25413@math.ufl.edu> wang@math.ufl.edu writes:
> >I have got a question for you emacs experts: I have some files which
> >contain bunch of non-printable characters, such as Control-L (served
> >as page breaker), Control-M (line breaker). How do I remove all of
> >them from the current buffer if I edit such a file in Emacs? 
> 
> Try
> 
>   "M-x replace-regexp RET [\000-\010\012-\037\177-\377] RET RET"
> 
> where each "\xxx" is a *single* *character* entered by typing "C-q x x x".
> Note that this character may actually be displayed as some random control
> character in the minibuffer.

I've found that query-replace-regexp offers a slightly more flexible
approach to this problem, but the principle is the same.
Technical Details
Message-ID: <1991May02.151152.18373@watson.ibm.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!watson!blinn.watson.ibm.com!mittle
References: <1991May1.154743.25413@math.ufl.edu> <19148@crdgw1.crd.ge.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,b4ba32a2a7cb275e
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-02 19:23:59 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!watson!blinn.watson.ibm.com!mittle
From: mittle@blinn.watson.ibm.com (Josh Mittleman)
Newsgroups: gnu.emacs.help
Subject: Re: Removal of non-printable characters
Message-ID: <1991May02.151152.18373@watson.ibm.com>
Date: 2 May 91 15:11:52 GMT
References: <1991May1.154743.25413@math.ufl.edu> <19148@crdgw1.crd.ge.com>
Sender: @watson.ibm.com
Organization: IBM T. J. Watson Research
Lines: 18