Print Page | Close Window

Non-Case-Sensitive RegEx

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=2011
Printed Date: 23 February 2025 at 1:36am


Topic: Non-Case-Sensitive RegEx
Posted By: Guests
Subject: Non-Case-Sensitive RegEx
Date 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

 




Replies:
Posted By: Desperado
Date 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.

 



Posted By: dcook
Date 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" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.christwebs.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.christwebs.com

mailto:dcook@christwebs.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - dcook@christwebs.com

 

 



Posted By: Desperado
Date 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" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://+" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 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:/" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://http:/ \w)|(<(\w){3,10}(\x20/>)|(\* http://w" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 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" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www." CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www. (\w){1,20}(4u).(biz|com|net))

Dan S



Posted By: Guests
Date 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



Print Page | Close Window