bug-bash
[Top][All Lists]
Advanced

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

"And" extended matching operator


From: Nikolai Kondrashov
Subject: "And" extended matching operator
Date: Wed, 28 Nov 2012 16:58:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10

Hi everyone,

Would it be possible to add another extended matching operator to already
supported ones? It's just we have "or" in @() and "not (or)" in !(), but no
"and". And combining patterns without it is awkward.

If I want to say "a and not b", I have to write "not (not a or c)", like this:

!(!(a)|c)

If we had "and" operator, say written like &(), it would be possible to write
it as is instead:

&(a|!(c))

which would be more readable.

Is there a chance to have such an operator added?

Thank you.

Sincerely,
Nick



reply via email to

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