Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - Non-Case-Sensitive RegEx
  FAQ FAQ  Forum Search   Register Register  Login Login

Non-Case-Sensitive RegEx

 Post Reply Post Reply
Author
DigitalMan View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote DigitalMan Quote  Post ReplyReply Direct Link To This Post Topic: Non-Case-Sensitive RegEx
    Posted: 16 September 2003 at 8:36pm

I'm not great with RegEx but I've been learning.  After reading the docs that installed with SpamFilter I still don't quite understand how to make a simple keyword non-case-sensitive (or is the correct term case-insensitive)?

For example, I'd like the correct syntax to enter one keyword that stops "VIAGRA" "viagra" "Viagra" "ViAgRa" and so on.

The readme docs did explain this, but I still didn't get it.  Or maybe I just did it wrong.

Thanks,
--DM

 

Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2003 at 12:39am

If the expression is all lower case then the result will work for both upper and lower by default.

(asdfg)  Will detect asdfg OR ASDFG OR AsDfG

Dan S.

 

Back to Top
dcook View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2005
Location: United States
Status: Offline
Points: 174
Post Options Post Options   Thanks (0) Thanks(0)   Quote dcook Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2003 at 1:22pm

Dan,

I am using many of the regex you posted earlier with great success.  Have you updated your keyword list?  If so could you share?  We are getting a growing amount of spam bypassing the regex we have in place. 

Thanks in advance for you help.

Dwight Cook
http://www.christwebs.com

dcook@christwebs.com

 

 

Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2003 at 7:31am

DM,

Here is my latest but I still must warn you that this kills a bunch of list servers so we have to add them to the allowed from email white list.  Also, I, too, am getting more junk "leaking" through.  This is mostly due to "New And Improved" Spam tactics.  I am really hoping that the new "fingerprinting" filter that LogSat is working on will improve that situation but I can't think of any way to filter stuff that is actually and external URL (see the posts a few lines up.)

((http|3dhttp)://.{0,26}(((%.+%))|@|:)[(\d|\w)])
(http://+[\d]{1,3}\.{1}[\d]{1,3}\.{1}[\d]{1,3}\.{1}[\d]{1,3})
((<[!--]+[\x20]{0,1}[a-zA-Z0-9]{10,}[\x20]{0,1}[!--](.+)){2,})
(<[!--]+[a-zA-Z0-9]{2}(-->))
((http://http:/\w)|(<(\w){3,10}(\x20/>)|(\*http://w)))
(<(!-- )+[a-zA-Z0-9=]{28,}( -->))
((content\-type:\x20text/(html|plain)(;{0,1}))((\r\n)|((\r\n)(\t|((\x20){0,15}))charset(.){5,20}\r\n))(content-transfer\-encoding:\x20base64\r\n))
((limited time (special|offer)))
(((arge your p)|(3 - 5 inches\!)|(herbalpillsonline)|(herbaltrials\.com)|(pillsavings)|(gsc\-100)))
((text\-decoration: blink)|(click here to start))
((your privacy is extremely important to us)|(this is not spam))
(http://www.(\w){1,20}(4u).(biz|com|net))

Dan S

Back to Top
Red74 View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Red74 Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2003 at 7:08pm
Is there a negation capability? In other words, instead of trying to create positive matches on what is not wanted, is there a way to create a match to what is wanted? Ie: any email not matching mickey@disney.com and not matching minney@disney.com will be deleted.

Dan
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.266 seconds.