From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Regexp to find second of three words Date: Mon, 07 Aug 2006 00:51:48 -0000 Organization: Alaska Internet Solutions Message-ID: Reply-To: tim@johnsons-web.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1154914847 5788 80.91.229.2 (7 Aug 2006 01:40:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2006 01:40:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 07 03:40:44 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 1G9u6X-0000Wg-Ql for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Aug 2006 03:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9u6X-0000XK-2D for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Aug 2006 21:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!feeder.news-service.com!feed.xsnews.nl!feeder.xsnews.nl!138.199.65.86.MISMATCH!sn-xt-ams-06!sn-xt-ams-04!sn-post-ams-01!sn-post-sjc-01!supernews.com!news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.0 (Linux) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 19 Original-Xref: shelby.stanford.edu gnu.emacs.help:140921 Original-To: help-gnu-emacs@gnu.org 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:36546 Archived-At: Hello: I've constructed a regexp to use with imenu. (note: this mailer is probably going to wrap it) "set[ ]+'[A-Za-z0-9*-_.]+[ ]\\(d\\(?:ef\\|oes\\)\\|func\\(?:tion\\)?\\|has\\|lfunc\\|sub\\)\\>" My goal is to capture from the following example set 'printf function printf but the regex is really picking up function I'd appreciate any help on correcting this. Thanks tim -- Tim Johnson http://www.alaska-internet-solutions.com