On Thu, 30 Oct 2003 13:57:51 -0500 Matt Kettler <[EMAIL PROTECTED]> wrote:

> At 10:23 AM 10/30/2003, Andrea Riela wrote:
> >Hi folks,
> >
> >How could I filter this type of spam:
> >
> >Penis
> >P.enis
> >Pe.nis
> >Pen.is
> >Peni.s
> 
> This regex should work for a custom rule to match those patterns.
>                  /P(\.?)e(\.?)n(\.?)i(\.?)s/
> 
> You'll probably want to make it a bit more useful like this:
>                  /\bP(\.?)e(\.?)n(\.?)i(\.?)s\b/i
> 
> That will force word-boundaries at each end, and will make it case 
> insensitive (ie: to match penis or peNiS)

I wonder how

/\bP[^[:alpha:]\s]{0,3}e[^[:alpha:]\s]{0,3}n[^[:alpha:]\s]{0,3}i[^[:alpha:]\s]{0,3}s\b/i

would fare...

-- 
Bob Apthorpe


-------------------------------------------------------
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