From: Chris McMahan <cmcmahan@one.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Serching for pattern down one column
Date: Tue, 25 Nov 2008 11:29:52 -0500 [thread overview]
Message-ID: <4r5abbnvke7.fsf@one.net> (raw)
In-Reply-To: mailman.1221.1227627817.26697.help-gnu-emacs@gnu.org
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
=================================================
next prev parent reply other threads:[~2008-11-25 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 0:59 Serching for pattern down one column ingvar
2008-11-25 13:54 ` Paul R
2008-11-25 15:43 ` Peter Dyballa
[not found] ` <mailman.1221.1227627817.26697.help-gnu-emacs@gnu.org>
2008-11-25 16:29 ` Chris McMahan [this message]
[not found] <mailman.1210.1227616965.26697.help-gnu-emacs@gnu.org>
2008-11-25 13:47 ` aartist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4r5abbnvke7.fsf@one.net \
--to=cmcmahan@one.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.