Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - RegEx re-Visited
  FAQ FAQ  Forum Search   Register Register  Login Login

RegEx re-Visited

 Post Reply Post Reply
Author
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 Topic: RegEx re-Visited
    Posted: 22 February 2004 at 11:38pm

All,

I am feeling dumb here!  Anyone have any luck creating a working "AND" expression?

Examble:  I do not want this in a message

I want to detect that "do" and "message" are in the same message and not only that, I wat to mak sure they are within 25 characters of each other and in any order.  In other words, just so long as the word "do" and "message" are as close or closer than 25 characters from each other but "message" can be befor or after "do".

This type of search can be done using Perl but gets very tricky and has a fair amount of overhead to it because you must buffer it ... at least that is the only way I know. SpamFilter may not be able to do this due to the "any order" requirement.

Perhaps, I am just not in the correct mind set and it is real simple.  That happens you know!

Regards,

Dan S.

Back to Top
ASB View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote ASB Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2004 at 3:42pm

Why not make two tests:  One for "do" and "message" in that order, and the other for "message" and "do" in that order.

Easier than buffering.

I guess it would be annoying if you needed to check for 3 words in any order

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.