From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28668 invoked from network); 3 Mar 2003 19:51:57 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by 172.16.49.205 with SMTP; 3 Mar 2003 19:51:57 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18pvwf-0000CA-0D for listarch-gnats-devel@sources.redhat.com; Mon, 03 Mar 2003 14:49:53 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18pvtv-0007Ng-00 for help-gnats@gnu.org; Mon, 03 Mar 2003 14:47:03 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18pvte-00072Y-00 for help-gnats@gnu.org; Mon, 03 Mar 2003 14:46:49 -0500 Received: from teapot.netman.dk ([193.88.72.6]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18pvtU-0006hc-00; Mon, 03 Mar 2003 14:46:37 -0500 Received: (from lh@localhost) by teapot.netman.dk (8.11.4/8.11.4) id h23JkI8205562; Mon, 3 Mar 2003 20:46:18 +0100 (MET) Date: Mon, 03 Mar 2003 19:51:00 -0000 From: Lars Henriksen To: "Andrew J. Gray" Message-ID: <20030303194618.GB202487@teapot.netman.dk> References: <20021102213505.GB646077@cluster1.netman.dk> <20021104191125.GA1148639@cluster2.netman.dk> <20021201221905.GA1331680@cluster2.netman.dk> <200303021053.h22Arrn11407@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303021053.h22Arrn11407@localhost.localdomain> User-Agent: Mutt/1.4i cc: hatzis@juniper.net cc: help-gnats@gnu.org cc: yngve.svendsen@sun.com cc: pdm@zamazal.org Subject: Re: Subject header matching--once again X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2003-q1/txt/msg00088.txt.bz2 On Sun, Mar 02, 2003 at 09:53:53PM +1100, Andrew J. Gray wrote: > As I understand it the match-word-constituent operator (\w) is not > meant to work inside matching lists. I am looking at the "info" > documentation included with the regex 0.12 (available from > http://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz). In the "List > Operators" node it says most characters lose any special meaning > inside a list. > > I think the closest equivalent that works in a list is the alnum > character class. Using this the regular expression would become: > > \\<(PR[ \t#/]?|([-[:alnum:]_+.]+)/)([0-9]+) > > Do you think this is a satisfactory replacement for \w? Absolutely. I have made a rudimentary test that worked OK. The documentation should then have \<(PR[ \t#/]?|[-[:alnum:]+.]+/)[0-9]+ in file p-usage.texi. I think that the text-capturing parentheses should be left out for clarity. Are you aware that Yngve has committed the documentation changes from my patch already? Regards Lars _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats