At 11:35 AM 11/18/2004 +0000, Peter Campion-Bye wrote:
I've put in a custom rule to pick up meds in the subject:

header          PCB_MEDS                Subject =~ /(?:\bmeds|meds\b)/i
describe        PCB_MEDS                Subject contains meds
score           PCB_MEDS                5

erm.. I'd STRONGLY suggest \b's on both, not one end.

The above will match any word beginning with, or ending in "meds".

I'd also suggest matching medz as well as meds:

 /\bmed[sz]\b/i

Note that \b does not require a space, so it will match "meds" at the start or end of a line just fine. \b is just a "word boundary" requirement. Punctuation also counts as a word boundary... so it will match :meds just fine too.



Reply via email to