Specific regular exp. creating

Antwort erstellen

Bestätigungscode
Gib den Code genau so ein, wie du ihn siehst; Groß- und Kleinschreibung wird nicht unterschieden.
Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet
Die letzten Beiträge des Themas
   

Ansicht erweitern Die letzten Beiträge des Themas: Specific regular exp. creating

Re: Specific regular exp. creating

Beitrag von Chactory » 23. Feb 2009, 22:13

Hi!

You're wellcome! :)

Regards, Chactory

Re: Specific regular exp. creating

Beitrag von HanSatan » 23. Feb 2009, 12:09

Sure Bro,

I am working over few other reg exps, based on over 300-400 spam mails from last month+, I will share them soon.

Re: Specific regular exp. creating

Beitrag von Chactory » 22. Feb 2009, 22:37

Hi,

that's a cool RegExp! It will filter "quick click", which sounds very specific for spam mails. You are using the "." sign as wildcard, but together with the "?" only, so I don't expect false positive recognitions. If you would permit me to use this idea, I would like to add it to my spam-word list.

Regards, Chactory

Re: Specific regular exp. creating

Beitrag von HanSatan » 22. Feb 2009, 20:47

Yes indeed,

I do realise that, and that's why creating reg exps may come hard after few weeks... I modified this reg exp:

Code: Alles auswählen
\b([Qq]uick).?[Cc].?l.?[i1].?c.?k\b

Re: Specific regular exp. creating

Beitrag von Chactory » 21. Feb 2009, 21:38

Hi together,

in my opinion, you have to be careful not to use too general expressions, for this could yield to false positive filterings.
E.g., if you filter "here", you will filter many non-spam mails with the commonly used word "here" in them. Like Quellcore wrote, "(knock|click)here" is already much more specific.
The expression "bed(ing)" will in fact filter "bed" as well as "beding". If you create an expression simply "beding" (or completely: "(?i)\bbeding\b"), this will particularly filter your searched word.

Regards, Chactory

Re: Specific regular exp. creating

Beitrag von HanSatan » 21. Feb 2009, 19:55

Thanks a lot,

it seems to match perfectly !

I got a 1x question ( I know I know I'm buggy) :D

I would like to filter out "beding" word but I don't want to filter "bed" word, so how should I set reg exp?

smthing like this:

Code: Alles auswählen
\bbed(ing)\b


or maybe there is other, better way with "." sign ??

Re: Specific regular exp. creating

Beitrag von Quellcore » 21. Feb 2009, 19:49

HanSatan hat geschrieben:Tell me 1x thing, if I would like to disable lines like "knock here" or "click here"

How about:
Code: Alles auswählen
(?i)(knock|click)\shere\b


Regards,
Quellcore

Re: Specific regular exp. creating

Beitrag von HanSatan » 21. Feb 2009, 19:39

Thanks for support Quellcore.

Tell me 1x thing, if I would like to disable lines like "knock here" or "click here" can I use such a reg exp:

Code: Alles auswählen
(?i).\shere

Yes I know that it will also remove "same here",

or maybe

Code: Alles auswählen
(?i)(knock)?(click)?\shere

Or maybe some other ideas/suggestions?

Re: Specific regular exp. creating

Beitrag von Quellcore » 21. Feb 2009, 19:32

Hallo HanSatan!

I also tried it with Regex Coach and here it works (EDIT: if it's not at the very end of the searched string).
"/D" stands for any Non-Digit, without that the Regular expression would also kick in for "New York, NY, 123456"
Sorry, it looks like it doesn't work at the very end of a text.
Try
Code: Alles auswählen
(?i)New\sYork,\sNY,\s[0-9]{5}\b
instead.


Regards,
Quellcore

Re: Specific regular exp. creating

Beitrag von HanSatan » 21. Feb 2009, 19:18

Indeed,

but lemme ask, why did you add \D in the end of the line ?

I checked it with regex coach but it doesn't seem to work with \D ;)

Re: Specific regular exp. creating

Beitrag von Quellcore » 21. Feb 2009, 18:33

HanSatan hat geschrieben:(?i)New\sYork,\sNY,\s[0123456789]{5,20}

But maybe there's some other (better way) to filter it out?

The number part iat the end could be cleaned up:
Code: Alles auswählen
(?i)New\sYork,\sNY,\s[0-9]{5}\D

This will require the ZIP Code part of your example to have exactly 5 digits.

Regards,
Quellcore

Re: Specific regular exp. creating

Beitrag von Chactory » 21. Feb 2009, 17:09

Hi,
my filter sequence is rather akin to your's. I just don't use the attachment filter. The AIR Filter caused false positive sieving with me, because in my company, there are listed similar mail addresses in non-spam mails often.
Yes, the Link Filter works as an url filter. I'm really enthusiastic about it!
You may want to try the DCC Filter. When you enter a higher threshold than default (I'm using 1200), then you won't achieve false positives often.
Regards, Chactory

Bild

Re: Specific regular exp. creating

Beitrag von Chactory » 21. Feb 2009, 16:29

Hi,

excuse me, the hyperlink is http://www.chactory.de/downloads/spampoints.zip, of course. The board likes it more, when you use BBCode to post hyperlinks: spampoints.ini.

Thank you for testing my spampoints.ini in the next days.

The cm.vtr.net server seems to be in Chile, the virtua.com is registered in Connecticut, US ...
HanSatan hat geschrieben:(my own e-mail address as sender)... I need to talk with server admin :)
:lol:

Regards, Chactory

Re: Specific regular exp. creating

Beitrag von HanSatan » 21. Feb 2009, 15:31

I cant post links here I dunno why, board script doesn't lemme throught.

chactory.de/ownloads/spampoints.zip right? if yes I will check it throught few next days.

Concerning my spam emails, they come from many hosts pc-114-102-162-190.cm.vtr.net,
c9522df7.virtua.com . br etc. Anyway most of those cases could be solved if my mail server would be patched properly, because most of them contain:

From: "Kaanxmjgrm" <hansatan@hansatan.com>
Envelope-to: hansatan@hansatan.com

(my own e-mail address as sender)...

I need to talk with server admin :)

BTW

What do you think about following priority list:

2009-02-21_144126.jpg
2009-02-21_144126.jpg (13.9 KiB) 1711-mal betrachtet


Is it fine? And 1x thing, url filter = link filter right ?

Re: Specific regular exp. creating

Beitrag von Chactory » 21. Feb 2009, 15:17

Hi,

HanSatan hat geschrieben:approx. 25-40% of my spam mails contain this line so it's helpfull ;)
this is strange ... where do those mails come from? :lol:

Regards, Chactory

Nach oben

 industrious-southeast