title: Searching for values in string, then updating the string
body: <p><strong>UPDATE 1:</strong></p>
  
  <p>Really sorry about this, I just realised I made a mistake with the question.</p>
  
  <p>If <code>data</code> = <code>some @text1 here, and @text2 here</code></p>
  
  <p>It should become</p>
  
  <p><code>some &lt;a href="http://www.google.com/?q=text1"&gt;@text1&lt;/a&gt; here, and &lt;a href="http://www.google.com/?q=text2"&gt;@text2&lt;/a&gt; here</code></p>
  
  <p><strong>ORIGINAL QUESTION:</strong></p>
  
  <p>Using jQuery AJAX, I am returning <code>data</code> and outputting it like this:</p>
  
  <p><code>$('.class_name_here').append( data )</code></p>
  
  <p>Within <code>data</code> I want to be able to search for certain characters, then add urls to them before outputting them, e.g.</p>
  
  <p>lets say <code>data</code> contains</p>
  
  <p><code>some @test here</code></p>
  
  <p>I want to find the word which follows after <code>@</code> and add <code>http://www.google.com</code> to it, so I end up with</p>
  
  <p><code>some &lt;a href="http://www.google.com"&gt;@test&lt;/a&gt; here</code></p>