title: Find twitter hashtags using jQuery, and apply a link
body: <p>I'd like to start this off by saying I'm hardly a pro at jQuery, and this seems like a non-standard question.</p>
  
  <p>Basically I'm making a blog in wordpress, and incorporated into the loop it shows tweets from my twitter profile. I would like to know how to select the hashtags from these tweets (ex. #foo) and then apply a html link to the hashtag as follows...</p>
  
  <pre><code>&lt;a class="hashtag" href="http://twitter.com/#search?q=foo"&gt;#foo&lt;/a&gt;
  </code></pre>
  
  <p>The link has to also place the value of the hashtag (minus the #) into the #search?q= part of the link.</p>
  
  <p>Is this possible and if so how would I go about doing this?</p>
  
  <p>Thanks, 
  Charlie Ryan</p>
  
  <p>EDIT:</p>
  
  <p>The hashtag #foo will be part of a h1, with no tags differentiating the one word such as</p>
  
  <pre><code>&lt;h1&gt;Lorem ipsum dolor sit amet #foo et adipiscing&lt;/h1&gt;
  </code></pre>
  
  <p>So basically I need to find all strings begining with # and replace them with the link as seen above.</p>