Karsten Bräckelmann wrote: > On Tue, 2008-12-02 at 12:35 -0500, Bowie Bailey wrote: > > Karsten Bräckelmann wrote: > > > > Btw, you need to escape the hash '#', not because this is an RE, > > > but because it is Perl. :) > > > > You don't need to escape the hash in a Perl RE unless you are using > > hash characters for the RE boundary markers. > > You're right. :) My bad. You need to escape the hash for SA, though.
I wasn't aware of that. I guess I've never tried matching a hash with a SpamAssassin rule. In that case, my suggested rule becomes: Subject =~ /\bPO ?\#? ?\d/i -- Bowie