From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Newsgroups: gmane.emacs.help Subject: displaying control characters/regex help Date: Wed, 08 Nov 2006 16:07:29 -0600 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163025669 20145 80.91.229.2 (8 Nov 2006 22:41:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Nov 2006 22:41:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 08 23:41:08 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ghw6T-0005Ia-7e for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Nov 2006 23:41:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ghw6S-0001Bp-Le for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Nov 2006 17:41:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 08 Nov 2006 16:07:30 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:KlAdMHq8q7kPQlLEFtsnILVLBro= Original-Lines: 33 Original-NNTP-Posting-Host: 66.92.130.203 Original-X-Trace: sv3-9a4Lu+4cA1c2ln5nWgDK9HYZ3xDlWBqpZsIyuehD7GvUNSmEJ8xJJIsvwmtAlxrAhuypzV4fuHFyTDv!tvUdjzBmneF52/j9b7Z0nUHjWcJl08mw8lrvKdyEwadBmz0VESbNkK7L9JoCbb34pXYhUMiCM+9E!yns= Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:142979 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38597 Archived-At: Hi - I'd like to know if Emacs has the ability to display control (non-printing) characters (as in Word, where it is possible to hit a button and see representations of all the non-printing characters). I may not actually need it for the problem I'm working on, but it would be nice to know - what I'm actually trying to accomplish is a global search-and-replace...I'm looking to replace: Any amount of whitespace (spaces, tabs, carriage returns), followed by either one or two digits, followed by any amount of whitespace, followed by a fixed string, followed by (possibly) more whitespace. There would be regular text (word characters) on either side of this regex region. (I'm trying to clean up a document that was saved-as-text from Acroread, that had a page number and a fixed footer on each page). Sample: -----boundary----- 34 My string is quite stringy. -----boundary----- I want to replace the entire mess between the boundaries with just a carriage return. Can I get a push in the right direction, please? Thanks much -