<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Courier New; font-size: 10pt; color: #000000'>All, <br><br>I am trying to resolve an issue with the MailScanner and ZendTo integration around how Outlook constructs HTML emails. My problem is brain cramping on Perl. Here is a code snippet:<br><br>!/usr/bin/perl<br><br>my $text = "<HTML 123>This is a test</HTML>";<br>my $html = "Add this first";<br><br>$text =~ s/(<html\S+)>(\S+)/$1$html$2/i;<br><br>print $text . "\n";<br><br><br>What I need to happen is that $html gets inserted before <HTML 123> and keep every else as it. Hopefully a Perl guru will put me straight!<br><div><span name="x"></span>-- <br>Thanks, Phil<span name="x"></span><br></div><br></div></body></html>