title: Regular expression to match the registered trademark symbol
body: <p>I am using PHP <code>preg_replace()</code> to find and replace a company name with their logo. However, this also needs to include the registered trademark symbol (R) at them end. So, how can you write a regular expression to match the following?</p>
  
  <p><code>Company Name®</code> or <code>Company Name</code> or <code>Company Name&lt;sup&gt;®&lt;/sup&gt;</code></p>
  
  <p>Thanks in advance!</p>