Break Row to Carriage Return preg_replace
<p>I am trying to use preg_replace to convert <code>&lt;br&gt;</code> or <code>&lt;br /&gt;</code> to a carriage return <code>(&amp;#13;)</code>. My problem seems to be that it either doesn't find the <code>&lt;br&gt;</code>'s or doesn't recognize the hex code I'm trying to pass in. Here is my relevant PHP: </p>

<pre><code>preg_replace('`&lt;br(?: /)?&gt;(\x{13}/u)`', '$1', $content);
</code></pre>

<p>Other Information: The strings I am passing in have <code>&amp;quot;</code> but I don't think that will interfere with <code>preg_replace()</code>.<br><br>
Here are a couple links that have helped me get this far:<br>
<a href="http://www.webmasterworld.com/forum21/10973.htm" rel="nofollow">http://www.webmasterworld.com/forum21/10973.htm</a> (use carriage return instead of <code>\n</code> in tooltips)<br>
<a href="http://us2.php.net/manual/en/reference.pcre.pattern.modifiers.php#58409" rel="nofollow">http://us2.php.net/manual/en/reference.pcre.pattern.modifiers.php#58409</a> (use <code>\x{13}</code> instead of <code>&amp;#13</code>)</p>
