am very glad for all this big help. now AND is working the way i youve advised
me.
thanks a lot!
-Original Message-
From: Matt Kettler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 5:02 AM
To: John Rudd
Cc: users@spamassassin.apache.org
Subject: Re: getting "and"
John Rudd wrote:
> Matt Kettler wrote:
>> John Rudd wrote:
>>> Matt Kettler wrote:
>>>
Really in regexes there is no such thing as an AND operation. It's
just
not something natural to do in a regex.
>>> I would argue, at a deeper level of language/grammar theory, that this
>>> isn't
Matt Kettler wrote:
John Rudd wrote:
Matt Kettler wrote:
Really in regexes there is no such thing as an AND operation. It's just
not something natural to do in a regex.
I would argue, at a deeper level of language/grammar theory, that this
isn't true. Instead, AND is implied by concatenation
Matt Kettler wrote:
/((mountain.*clouds)|(clouds.*mountain))/i WILL match cloudy
mountaineers.. There are no restrictions on what characters come before
or after the expression.
Actually, it wont catch cloudy mountaineers because the expression
specifies clouds not cloud nor cloudy.
If yo
vertito wrote:
> so
>
> cloudy mountainers
>
> will still be catched by ORing both of 2 expression, that would
> produce AND expression, is that right?
>
/[\s']((mountain.*clouds)|(clouds.*mountain))[\s',-]/i will NOT match
cloudy mountaineers. It will fail because of the [\s',-] at the end
John Rudd wrote:
> Matt Kettler wrote:
>
>> Really in regexes there is no such thing as an AND operation. It's just
>> not something natural to do in a regex.
>
> I would argue, at a deeper level of language/grammar theory, that this
> isn't true. Instead, AND is implied by concatenation.
No it's
server rule.
appreciated.
-Original Message-
From: John Rudd [mailto:[EMAIL PROTECTED]
Sent: Monday, November 27, 2006 4:33 AM
To: Matt Kettler
Cc: vertito; users@spamassassin.apache.org
Subject: Re: getting "and" operator work
Matt Kettler wrote:
> Really in regexes there is
Matt Kettler wrote:
Really in regexes there is no such thing as an AND operation. It's just
not something natural to do in a regex.
I would argue, at a deeper level of language/grammar theory, that this
isn't true. Instead, AND is implied by concatenation. "X.*Y.*Z" says
"X and Y and Z all
vertito wrote:
> /[\s']((mountain.*clouds)|(clouds.*mountain))[\s',-]/i
>
> great, the above works on making "mountain" and "clouds" both true.
>
> does the below differs from the above?
>
> /\bmountain\b|\bclouds\b/i
>
Absolutely. That second string is an OR operation. It will match
mountain
EMAIL PROTECTED]
Sent: Friday, November 24, 2006 9:33 PM
To: vertito
Cc: users@spamassassin.apache.org
Subject: Re: getting "and" operator work
vertito wrote:
> header CF_BAD_SUBJ12 Subject =~ /[\s']mountain\|clouds[\s',-]/i
> score CF_BAD_SUBJ12
vertito wrote:
header CF_BAD_SUBJ12 Subject =~ /[\s']mountain\|clouds[\s',-]/i
score CF_BAD_SUBJ12 8.0
describe CF_BAD_SUBJ12 Drug spam
with the above example, how do you make make a subject rule with the words
mountain
AND (operator)
clouds
in a way
header CF_BAD_SUBJ12 Subject =~ /[\s']mountain\|clouds[\s',-]/i
score CF_BAD_SUBJ12 8.0
describe CF_BAD_SUBJ12 Drug spam
with the above example, how do you make make a subject rule with the words
mountain
AND (operator)
clouds
in a way if both words ex
12 matches
Mail list logo