Link to home
Start Free TrialLog in
Avatar of ATWMICHEL
ATWMICHEL

asked on

Finding @ not less than twice in a string

Hello,

I am trying to write a regular expression for a spam filter that checks for  @  appearing more than once in a string.

Reason :  there is a new type of file-less virus exploit that comes into our spam filter  with two email addresses in the FROM field.  The writers of the spam filter are working on producing a fix but in the meantime I want to write a rule which examines the FROM field and if it finds  more than 1 instance of  "@"  in the string that is the FROM field, then the rule will reject that email.

Thanks for any help on this.

M.
ASKER CERTIFIED SOLUTION
Avatar of Kimputer
Kimputer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ATWMICHEL
ATWMICHEL

ASKER

Hi Kimputer,

Brilliant.

Thank You - I like the lateral thinking and it works.

Much Thanks.


M.
Excellent lateral thinking :  didn't answer just the question asked - thought about the reason for the question and suggested a luminous simple solution that works.

Thanks a million.

M.