From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: regexp question Date: Sat, 30 Sep 2006 00:03:22 +0200 Organization: The Church of Emacs Message-ID: <87fyeacout.fsf@hans.local.net> References: <9773EFADA4FF6C43A49824D50B1539A7018ACD7D@exbe04.intra.dlr.de> <337ACD55-1394-47C6-BF2F-CE72365E52A6@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1159576659 30987 80.91.229.2 (30 Sep 2006 00:37:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2006 00:37:39 +0000 (UTC) Cc: C.Strobl@dlr.de, help-gnu-emacs@gnu.org, rutt.4@osu.edu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 02:37:28 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 1GTSod-0005oy-68 for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Sep 2006 02:34:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTSob-0005Wz-O7 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Sep 2006 20:34:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTSoM-0005V9-TW for help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 20:34:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTSoK-0005Qy-57 for help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 20:34:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTSoJ-0005Qv-WD for help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 20:34:32 -0400 Original-Received: from [212.227.126.171] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GTStj-000890-RA for help-gnu-emacs@gnu.org; Fri, 29 Sep 2006 20:40:08 -0400 Original-Received: from [84.167.66.150] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1GTSoC1fKZ-00006X; Sat, 30 Sep 2006 02:34:27 +0200 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 9D1C64627A; Sat, 30 Sep 2006 00:03:22 +0200 (CEST) Original-To: Peter Dyballa In-Reply-To: <337ACD55-1394-47C6-BF2F-CE72365E52A6@Web.DE> (Peter Dyballa's message of "Tue\, 26 Sep 2006 19\:16\:51 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 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:37725 Archived-At: Peter Dyballa writes: > Am 26.09.2006 um 14:09 schrieb : > >> how can i find this text block with a regular expression? > > [-_ !",./0-9:<=3D>A-Za-z > ]* > > - has to come first, _ is just close, then come SPACE and TAB, ..., > and finally a newline, C-q C-j. > > To determine the characters in the region do this shell-command-on-=20 > region: > > sed -e 's/\(.\)/\1=C2=B7/g' | tr '=C2=B7' '\012' | sort -u ^ I assume above construct is necessary for (older) UNIX systems? I tried: sed -e 's/\(.\)/\1\n/g | sort -u which is working on my Gnu/Linux system. --=20 Best wishes H. Dieter Wilhelm Darmstadt, Germany