RegEx re-Visited |
Post Reply ![]() |
Author | |
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
ASB ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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.145 seconds.