title: Extracting Twitter hashtag from string in PHP
body: <p>I need some help with twitter hashtag, I need to extract a certain hashtag as string variable in PHP.
  Until now I have this </p>
  
  <pre><code>$hash = preg_replace ("/#(\\w+)/", "&lt;a href=\"http://twitter.com/search?q=$1\"&gt;#$1&lt;/a&gt;", $tweet_text);
  </code></pre>
  
  <p>but this just transforms hashtag_string into link</p>