RE: getting "and" operator work

2006-12-01 Thread vertito
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"

Re: getting "and" operator work

2006-11-27 Thread Matt Kettler
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

Re: getting "and" operator work

2006-11-27 Thread John Rudd
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

Re: getting "and" operator work

2006-11-27 Thread John Rudd
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

Re: getting "and" operator work

2006-11-27 Thread Matt Kettler
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

Re: getting "and" operator work

2006-11-27 Thread Matt Kettler
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

RE: getting "and" operator work

2006-11-27 Thread vertito
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

Re: getting "and" operator work

2006-11-26 Thread John Rudd
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

Re: getting "and" operator work

2006-11-24 Thread Matt Kettler
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

RE: getting "and" operator work

2006-11-24 Thread vertito
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

Re: getting "and" operator work

2006-11-24 Thread John Rudd
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

getting "and" operator work

2006-11-24 Thread vertito
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