-
Mail Filters
I'm trying to make a mail filter that filters e-mails from [email protected] .. However, sometimes his e-mails come from [email protected] or [email protected] . And sometimes he sends e-mails from [email protected].
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 [email protected] 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.
-
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 :)