title: PHP Twitter replace link and hashtag with real link
body: <p>I am looping over JSON response from Twitter API. Each API response gives me a tweet similar to:</p>
  
  <blockquote>
    <p>Hi my name is @john, and I love #soccer, visit me</p>
  </blockquote>
  
  <p>I am trying to replace <code>@john</code>, and insert <code>&lt;a href=http://twitter.com/john&gt;@john&lt;/a&gt;</code> but the comma (<code>,</code>) after <code>@john</code>, is the problem.</p>
  
  <p>How to replace dots, commas, etc before and after the tag?</p>