procmail
[Top] [All Lists]

better than: X Y|Y X

2001-10-17 20:24:36
I often need to match things like "address change" which might be
written "change address" or those ever-popular spam phrases
"100% guaranteed" and "guaranteed 100%" etc... 

I'd like to think there's a more clever approach than the
brute-force: X Y|Y X, but I can't seem to see it.  Writing
(X)? Y (X)? doesn't do the job because it can match just Y. 

Any ideas?  TIA, as always,

Jim
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>