You could simply match /From: (.*?) <(.*?)>/ and than check $1 and $2 with Perl
Far better maintainable.
Unless ... this isn't really a Perl question?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Regex Expression to filter email for Barracuda Email Appliance
by LanX
in thread Regex Expression to filter email for Barracuda Email Appliance
by higginss20
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |