note
blazar
<blockquote><i><c>
$__to =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__cc =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__bcc =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__from =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__subject =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__html_message =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__text_message =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__importance =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__xpriority =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$__x_ms_priority =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
$_mail_Message =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
</c></i></blockquote>
<p><em>I personally believe</em> that if those substitutions are in fact all the <strong>same</strong> substitution, which seems to be the case -and would be most reasonable/probable- although I'm not sure due the alignment... then I should point out, on a totally OT basis wrt your actual problem, that you'd probably better do:</p>
<c>
s{ \n\r | \r | \n }{\r\n}gx for
$__to,
$__cc,
$__bcc,
$__from,
$__subject,
$__html_message,
$__text_message,
$__importance,
$__xpriority,
$__x_ms_priority,
$_mail_Message;
</c>
<p>I also edited the regex to the point of:</p>
<ul>
<li>removing a set of <em>unnecessary</em> capturing parens;</li>
<li>removing a pattern that would be replaced by itself;</li>
<li>improving readability with <c>/x</c> (incidentally, <c>/s</c> did nothing there...) and alternate delimiters.</li>
</ul>
<div class="pmsig"><div class="pmsig-409850">
<small><c>-- </c><br/>
If you can't understand the [wp://incipit], then please check the <strong>[http://blazar.tumblr.com/post/17639246|IPB Campaign]</strong>.</small>
</div></div>
723023
723071