Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!inria!seti!minos!deschamp From: deschamp@minos.inria.fr (Philippe Deschamp) Newsgroups: comp.emacs Subject: Re: searching for "non-printables" Message-ID: <1521@seti.inria.fr> Date: 24 Jul 90 11:22:41 GMT References: <929@meaddata.mead.UUCP> Sender: news@seti.inria.fr Reply-To: deschamp@seti.inria.fr Organization: INRIA Rocquencourt -- France Lines: 20 In article <929@meaddata.mead.UUCP>, jennifer@mead.UUCP (Jennifer Lill) writes: |> How can I search for a string containing a non-printable that |> emacs would display with a \? I use "isearch-forward-regexp" (bound to M-^S) with the appropriate regexp: "[^^@-~]" to find characters with the 8th bit on (your question as I understand it), "[^^I^J -~]" to find non-printable characters (what I usually do). As these regular expressions are fed interactively to Emacs, you need some care to type them. The first regexp is obtained by typing the sequence [ ^ C-q C-@ - ~ ] and the second one by [ ^ TAB RET SPC - ~ ] Of course, this only works for ASCII... Philippe Deschamp. Tlx: 697033F Fax: +33 (1) 39-63-53-30 Tel: +33 (1) 39-63-58-58 Email: deschamp@seti.inria.fr || ...!inria!deschamp Smail: INRIA, Rocquencourt, BP 105, 78153 Le Chesnay Cedex, France