On Tue, 2 Dec 2008, Ray Jette wrote:

Good morning,
I am trying to write a negative scoring rule that files on the following:
PO
PO#
PO #

Following is the rule I am using:

header PO_AND_ORDERS        Subject =~ /\bPO*?#?/i
score PO_AND_ORDERS        -0.50
describe PO_AND_ORDERS A negative scoring rule that searches the subject for PO #'s. Thanks for any help you can provide.

This regex will match the presents of either three you show above:

/PO(?: ?#)?/

Reply via email to