so cloudy mountainers
will still be catched by ORing both of 2 expression, that would produce AND expression, is that right? so 2 expressions ORred together will have the same result as single ANDed expression, right? thanks for all feedbacks as the experession is now working with my 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 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 have to be present". The catch is that an order is implied by the concatenation, where we don't always assume an order to AND and OR operators in other contexts (and the | operator in regex's doesn't impose order, the way concatenation does). Which leads to: > So in the first chunk, John faked an And. What you really have is two > expressions that are ORed together. The thing that I ORed was the order of the elements, not the ANDing of elements. The ANDing of the elements is a natural consequence of the concatenation. The first chunk says "maintain and clouds". The second chunk says "clouds and mountain".