boat_broker hat geschrieben:I had considered using Regular Expressions before but I was too lazy to try and learn how they worked. When I saw the new “Rules” Section I was kind of hoping that it might do the same thing easier. However, I have yet to see any update on just how to use the Rules Section. Is there any discussion of that section or instructions for that section?
Getting back to regular expressions. After playing around with them for a while I believe that the RegEx \b[Rr][Ee]\b:\s\B will do what I was asking, to knock out any email with a blank after the “Re:” while not eliminating a message with a word after the blank. I extrapolated this to Fw: and Fwd: as well (\b[Ff][Ww]\b:\s\B and \b[Rr][Ee]\b:\s\B) so I believe that I am covered. Comments would be welcome.
Regular-Expressions.info hat geschrieben:
- Before the first character in the string, if the first character is a word character.
- After the last character in the string, if the last character is a word character.
- Between two characters in the string, where one is a word character and the other is not a word character.
Subject matches (regex) RE:\s*
Subject contains (regex) ^RE:\s*$
It looks like the Rules Section may allow me to use RegExps in specific areas of an email (ie Subject or body, etc). I am looking forward to exploring the potential of this "wizard".
Chactory hat geschrieben:Until now, I have no idea how to describe with a RegEx, that the subject contains "RE:", and nothing more ...
Quellcore hat geschrieben:realize the difference between the most common "contains (regex)" and the "matches (regex)"
boat_broker hat geschrieben:I believe that you correctly identified my intent with \b[Rr][Ee]\b:\s\B. However, with the RegEx Coach VM it does seem to work. It recognizes "Re:" and "Re: " and "Re: " (a re followed by a tab). At the same time it passes "Re: boats" and "Re:boats". So far, all is good. I will let you know if I change anything and I will go back to my formula and try to explain my reasoning. I do need to review the "anchor" concept that you mentioned. I should also note that I came up with this as an entry into the Spam Words file not the Rule Filter. I believe that it will be the same in the Rule Filter but it should be a little more precise.
boat_broker hat geschrieben:Thank you so much for the time you put into your reply. It was way more than I had hoped.
boat_broker hat geschrieben:I’ve been pecking away at this today and my head is spinning. I am curious if the virtual machine that you are using is available. I have been getting different results than you mention (or I am interpreting them incorrectly) when I use The Regex Coach by Edi Weitz that is mentioned in the Spamihilator Wiki RegEx Tutorial
boat_broker hat geschrieben:I downloaded the QuickREx program that you linked to and went to set it up. However, in the Global Flags section I found the check box for the "ORO Perl Flags (Case insensitive)" but not for "Jakarta ORO Perl". There is one for "Jakarta-Regexp Flags (Case insensitive) (Multiline)", is that what you were referring to?
boat_broker hat geschrieben:Out of curiosity, how did you determine to select those two implementations?
boat_broker hat geschrieben:Obviously, I'm going to have to send myself some emails. My RegEx seemed to be working in my Spami but maybe it was focused on something else. Like you mentioned, the two different RegEx engines give me different results.
where can I find the Global Flags settings? I didn't success to find it since two days ...Quellcore hat geschrieben:Evaluating: ORO Perl 5
Global Flags: ORO Perl "Case Insensitive"
Chactory hat geschrieben:where can I find the Global Flags settings? I didn't success to find it since two days ...
Mitglieder in diesem Forum: Google [Bot] und 0 Gäste