<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.&nbsp; My problem is brain cramping on Perl. Here is a code snippet:<br><br>!/usr/bin/perl<br><br>my $text = "&lt;HTML 123&gt;This is a test&lt;/HTML&gt;";<br>my $html = "Add this first";<br><br>$text =~ s/(&lt;html\S+)&gt;(\S+)/$1$html$2/i;<br><br>print $text . "\n";<br><br><br>What I need to happen is that $html gets inserted before &lt;HTML 123&gt; and keep every else as it.&nbsp; 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>