From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: replacing non-printable character \377 Date: Thu, 24 Jan 2013 20:45:41 +0200 Message-ID: <83mwvyl8ru.fsf@gnu.org> References: <1359052428.97313.YahooMailNeo@web161002.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1359053177 25467 80.91.229.3 (24 Jan 2013 18:46:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2013 18:46:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 24 19:46:36 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TyRoq-0003ml-CR for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2013 19:46:36 +0100 Original-Received: from localhost ([::1]:45341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyRoW-0002zY-Id for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2013 13:46:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyRoM-0002yL-9A for help-gnu-emacs@gnu.org; Thu, 24 Jan 2013 13:46:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyRoK-0006BD-Of for help-gnu-emacs@gnu.org; Thu, 24 Jan 2013 13:46:06 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyRoK-0006AW-Ge for help-gnu-emacs@gnu.org; Thu, 24 Jan 2013 13:46:04 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MH5002007RGQC00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 24 Jan 2013 20:45:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MH5002TA840PU30@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 24 Jan 2013 20:45:37 +0200 (IST) In-reply-to: <1359052428.97313.YahooMailNeo@web161002.mail.bf1.yahoo.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88797 Archived-At: > Date: Thu, 24 Jan 2013 10:33:48 -0800 (PST) > From: Owen McGonagle > > 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.)