title: Append html to all lines not ending with html tag
body: <p>I'm trying to append <code>&lt;br/&gt;</code> to all lines that do not end with an html tag, but I'm unable to get it working.</p>
  
  <p>I've got this so far, but it seems to match nothing at all (in PHP).</p>
  
  <pre><code>$message=preg_replace("/^(.*[^&gt;])([\n\r])$/","\${1}&lt;br/&gt;\${2}",$message);
  </code></pre>
  
  <p>Any ideas on how to get this working properly?</p>