August 12th, 2007, 04: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, 05: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
By sphanlon in forum Spyware / Adware
Last Post: April 1st, 2013, 09:05 PM
By ThePreacher in forum Miscellaneous Security Discussions
Last Post: December 14th, 2006, 09:37 PM
By ai0070 in forum Miscellaneous Security Discussions
Last Post: October 19th, 2004, 12:21 AM
By gore in forum Newbie Security Questions
Last Post: December 29th, 2003, 08:01 AM
By rajat in forum Roll Call
Last Post: February 20th, 2002, 05:08 AM