title: Regex on ;) smilie
body: <p>A minor inconvenience my users have found is that if they use a smilie such as <code>&gt;_&gt;</code> at the end of parentheses (kind of like this: &gt;_&gt;) then during processing it is run through <code>htmlspecialchars()</code>, making it <code>&amp;gt;_&amp;gt;)</code> - you can see the problem, I think. The <code>;)</code> at the end is then replaced by the "Wink" smilie.</p>
  
  <p>Can anyone give me a regex that will replace <code>;)</code> with the smilie, but only if the <code>;</code> is not the end of an HTML entity? (I'm sure it would involve a lookbehind but I can't seem to understand how to use them &gt;_&gt;)</p>
  
  <p>Thank you!</p>