On Sat Sep 20 15:06:20 2008, ANDK wrote:
Show quoted text> You said, this was the last, really last and only feature missing?
>
> Can you provide four examples where this would be usefule?
>
> What do you want when the thing matches multiple times?
>
> What if the match itself is the string 0?
>
> Just food for thoughts
I want to have it to see which window managers users use while running
the Tk test suite. The window manager is printed out in the first test
as the string
window manager: FoobarWm
So it would be nice if I could write
--q 'qr:window manager: (.*)'
I don't have any opinion on multiple matches. The matches could be
concatenated. But result lines would get even longer as they already
might be, so this approach might or might not be useful.
As for the string "0", this would not be problematic, because currently
the empty string is returned for false. A problem could only arise that
the 'empty capture string' and 'not matched' cannot be differentiated.
But maybe this problem may be neglected.