title: preg_replace Text in Email Link
body: <p>I have a php string</p>
  
  <pre><code>echo $this-&gt;contact-&gt;email_to
  </code></pre>
  
  <p>This outputs the following HTML</p>
  
  <pre><code>&lt;a href="mailto:me@mymail.com"&gt;me@mymail.com&lt;/a&gt;
  </code></pre>
  
  <p>I want it to output the following HTML</p>
  
  <pre><code>&lt;a href="mailto:me@mymail.com"&gt;&amp;#xf0e0;&lt;/a&gt;
  </code></pre>
  
  <p>I have been playing around with preg_replace but getting nowhere. I have got as far as the following code but it doesn't work at all.</p>
  
  <pre><code>echo preg_replace(array('/([\w-?&amp;;#~=\.\/]+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?))/i'), array('$1', '&amp;#xf0e0;'), $this-&gt;contact-&gt;email_to);
  </code></pre>
  
  <p>I am no PHP expert so I understand there might be easier ways of doing this but I am having difficulty figuring it out.</p>