Sqfixes/sqbugs regexp (was: [BUG] Transcript semaphore)
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Fri Oct 12 11:06:01 UTC 2001
On Thu, 11 Oct 2001, David Farber wrote:
>
> ok, i'll take a stab...
>
> *^Subject: (\[BUG\])?\[(FIX|ENH|ADD|GOOD|ANN|HACK).*\]
>
> it think what's missing here is a more generic optional prefix match. right
> now, you only match "[BUG]" as a possible prefix to the other tags, but i
> think what you really want is to match *any* square bracket pairs (like
> "[UNIX VM]"). so, how about:
>
> *^Subject: (\[.*\])*\[(FIX|ENH|ADD|GOOD|ANN|HACK).*\]
>
> just a guess...
Now that would match "[Q] newbie (was: Re: [BUG][FIX] Bla)". But not the
"[unix] [fix]" example I gave. I think it's not *that* simple, otherwise I
wouldn't have asked ;-)
But thinking about it, a number of bracketed tags would be something like
(\[[A-Z -]+\] *)*
so I might try that? Better ideas?
-- Bert
More information about the Squeak-dev
mailing list
|