August 12th, 2007, 03:45 AM
I'm trying to make a mail filter that filters e-mails from email@example.com .. However, sometimes his e-mails come from firstname.lastname@example.org or email@example.com . And sometimes he sends e-mails from firstname.lastname@example.org.
So I'm trying to use regular expressions to solve my problem.
So far this is what I have:
This filter is catching email@example.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
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
If you cannot do someone any good: don't do them any harm....
As long as you did this to one of these, the least of my little ones............you did it unto Me.
What profiteth a man if he gains the entire World at the expense of his immortal soul?
By sphanlon in forum Spyware / Adware
Last Post: April 1st, 2013, 08:05 PM
By ThePreacher in forum Miscellaneous Security Discussions
Last Post: December 14th, 2006, 08:37 PM
By ai0070 in forum Miscellaneous Security Discussions
Last Post: October 18th, 2004, 11:21 PM
By gore in forum Newbie Security Questions
Last Post: December 29th, 2003, 07:01 AM
By rajat in forum Roll Call
Last Post: February 20th, 2002, 04:08 AM