[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp question
From: |
Dieter Wilhelm |
Subject: |
Re: regexp question |
Date: |
Sat, 30 Sep 2006 00:03:22 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 26.09.2006 um 14:09 schrieb <C.Strobl@dlr.de>:
>
>> how can i find this text block with a regular expression?
>
> <column_right>[-_ !",./0-9:<=>A-Za-z
> ]*</column_right>
>
> - 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-
> region:
>
> sed -e 's/\(.\)/\1·/g' | tr '·' '\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.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
RE: replace a textblock in multiple files, Jay Bingham, 2006/09/27