From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: Serching for pattern down one column Date: Tue, 25 Nov 2008 11:29:52 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <4r5abbnvke7.fsf@one.net> References: <20673287.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1227631402 9248 80.91.229.12 (25 Nov 2008 16:43:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 16:43:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 17:44:24 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L510x-00052V-FW for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 17:43:51 +0100 Original-Received: from localhost ([127.0.0.1]:46624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L50zo-0007vl-4p for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 11:42:40 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader1.panix.com 1227630591 4686 166.84.1.5 (25 Nov 2008 16:29:51 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 25 Nov 2008 16:29:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:CBILLlXmd3/YTSqe8aPoMLDAZFk= Original-Xref: news.stanford.edu gnu.emacs.help:164770 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:60100 Archived-At: Peter Dyballa 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 =================================================