Link to home
Start Free TrialLog in
Avatar of A2the6th
A2the6th

asked on

Regular expression to create keyword filter

We are running ORF along with Mcafee's anti spam tools.  ORF does a great job generally speaking but I have found recently that some email have been slipping through the cracks.  Sexually explicit terms are making it through.  A keyword filter would be easy enough to setup but I am unsure of how to create the regular expression.  

For the most part I would like to create something that would state any word with C(any ascii character)CK at the beginning, middle or end of the word would be marked as spam.  

thanks
Chace
ASKER CERTIFIED SOLUTION
Avatar of ddrudik
ddrudik
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops, to require a character, instead use:
C.CK

Also, you might be interested in checking out Vamsoft's (ORF) site for regex patterns:
http://www.vamsoft.com/rgxexpr.asp?t=3&p=1&s=date_desc
Here's a regex reference page that might help you:
http://regexlib.com/CheatSheet.aspx

If you have further interest in regex patterns:
http://www.regular-expressions.info/
Avatar of A2the6th
A2the6th

ASKER

that will do.

Thanks
Chace
Thanks for the question and the points.