> header __FROM_THOMAS_1 From =~ /<thomas\.cameron\@camerontech\.(?:com)>/i
You can simplify this. The parenthesized grouping was only necessary when there was more than one possible string, in my case .com and .net. Since you only have .com you can remove the (:? and ) and make the regex a little more efficient: > header __FROM_THOMAS_1 From =~ /<thomas\.cameron\@camerontech\.com>/i