> -----Original Message-----
> From: Matt Kettler [mailto:[EMAIL PROTECTED]
> 
> At 01:53 PM 10/29/2003, Chris Santerre wrote:
> >SUBJECT_XXX
> >and in it, it has naughty words. One of which it looks for is :
> >/pen.s/i
> 
> Rather than do the ^oO thing, why not modify your . to exclude spaces:
> 
> /pen\Ss/
> 
> This will look for a "non whitespace" in that spot.
> 
> I'd also suggest putting a \b at the beginning and end to 
> force a word 
> boundary.. you're really looking for the word penis or some 
> mangling of it, 
> not as a part of a larger word.
> 
> /\bpen\Ss\b/
> 

DOH! Now I feel silly (-:

> You could also restrict it further by using only specific 
> characters that 
> are abused to obscure the word penis:
> 
> pen[i1!*()l]s
> 
> For that matter, you might want to replace the s with [s$*52]

I was originally going to do this, but at the time, spammers were using
everything under the sun to obfu this word. So rather them list all
possible, I just said all. I think the \S will do, and I will bound it. 

As always Matt, Thanks!

--Chris Santerre 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to