title: Finding @mentions in string
body: <p>Trying to replace all occurrences of an @mention with an anchor tag, so far I have:</p>
  
  <pre><code>$comment = preg_replace('/@([^@ ])? /', '&lt;a href="/$1"&gt;@$1&lt;/a&gt; ', $comment);
  </code></pre>
  
  <p>Take the following sample string:</p>
  
  <pre><code>"@name kdfjd fkjd as@name @ lkjlkj @name"
  </code></pre>
  
  <p>Everything matches okay so far, but I want to ignore that single "@" symbol.  I've tried using "+" and "{2,}" after the "[^@ ]" which I thought would enforce a minimum amount of matches, but it's not working.</p>