Help with a regexp

Steve Freegard steve.freegard at fsl.com
Mon Aug 25 15:41:21 IST 2008


Steve Campbell wrote:
> One of our domain names is cnpapers.com and another is cnpapers.net. The 
> SA rule URI_CHINA_ADJ catches a lot of our mail, and although it is a 
> relatively low scoring rule, it does contribute.
> 
> The rule is defined as follows:
> 
> /^(?:https?:\/\/)?.*\.cn.*/i
> 
> Can anyone see how it's catching us and how I might change this? I guess 
> I need to contact the SA people after I see how it's really failing on 
> our names. Sorry, but I'm useless with regexp for now.
> 

How about:

/^(?:https?:\/\/)?.*\.cn(?:\/.*)*$/i

That would seem to keep the intent of the rule without misfiring on 
cnpapers.com.

Cheers,
Steve.


More information about the MailScanner mailing list