help-gnats
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject header matching--once again


From: Lars Henriksen
Subject: Re: Subject header matching--once again
Date: Mon, 3 Mar 2003 20:46:18 +0100
User-agent: Mutt/1.4i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]