Non-Case-Sensitive RegEx |
Post Reply ![]() |
Author | |
DigitalMan ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() 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,
|
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
dcook ![]() Senior Member ![]() ![]() Joined: 31 January 2005 Location: United States Status: Offline Points: 174 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
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)]) Dan S |
|
![]() |
|
Red74 ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.266 seconds.