[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Serching for pattern down one column
From: |
Chris McMahan |
Subject: |
Re: Serching for pattern down one column |
Date: |
Tue, 25 Nov 2008 11:29:52 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) |
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 25.11.2008 um 01:59 schrieb ingvar:
>
>> I now want to search for the pattern "111" in a column (it should
>> find the
>> pattern in column 2 rows 2-4 and column 3 rows 3-5). Does anyone
>> know how to
>> do it?
>
>
> I think it's *not* possible to write *one* regular expression to find
> the occurrence in *any* column, though it's possible to write n
> regexps to find the occurrence in exactly one of the n columns.
>
> --
> Greetings
>
> Pete
>
> A lot of us are working harder than we want, at things we don't like
> to do. Why? ...In order to afford the sort of existence we don't care
> to live.
> – Bradford Angier
How about a simple lisp function that would query the user for the
column (or take it from the current cursor position) and plug that into
a regexp to search?
- chris
--
(. .)
=ooO=(_)=Ooo=====================================
Chris McMahan | first_initiallastname@one.dot.net
=================================================