-
August 12th, 2007, 03:45 AM
#1
Mail Filters
I'm trying to make a mail filter that filters e-mails from drew@buffalobills.com .. However, sometimes his e-mails come from drew@mailhost.buffalobills.com or drew@mail.buffalobills.com . And sometimes he sends e-mails from drew@nfl.com.
So I'm trying to use regular expressions to solve my problem.
So far this is what I have:
^drew@buffalobills\.com|.*bufalobills\.com|nfl\.com
This filter is catching andrew@nfl.com and I don't want it to. Is anyone here good at regular expressions and able to help me? I'm completely L_O_S_T.
WARNING: THIS SIGNATURE IS SHAREWARE PLEASE REGISTER THIS SIGNATURE BY SENDING ME MONEY TO SEE THE COMPLETE SIGNATURE!
-
August 12th, 2007, 04:55 AM
#2
I don't know the answer as it has been a long time and I really cannot be bothered to dig out any references (I can't even remember where they are).
I think I can tell you why it is doing what it is though. The ^ (caret) tells it that a string is starting with "drew" in it, so it correctly finds that string in "andrew". I would have thought it would find "andrews" as well?
Off the top of my head, what you have looks a bit odd for a regular expression........... something tells me there ought to be some brackets somewhere? I would suggest that you look in your manual for "string delimiters"?
Just a guess mind you
Similar Threads
-
By sphanlon in forum Spyware / Adware
Replies: 11
Last Post: April 1st, 2013, 08:05 PM
-
By ThePreacher in forum Miscellaneous Security Discussions
Replies: 17
Last Post: December 14th, 2006, 09:37 PM
-
By ai0070 in forum Miscellaneous Security Discussions
Replies: 6
Last Post: October 18th, 2004, 11:21 PM
-
By gore in forum Newbie Security Questions
Replies: 11
Last Post: December 29th, 2003, 08:01 AM
-
By rajat in forum Roll Call
Replies: 0
Last Post: February 20th, 2002, 05:08 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|