title: preg_match all words start with an @?
body: <p>i'm not very firm with regular Expressions, so i have to ask you:</p>
  
  <p>How to find out with PHP if a string contains a word starting with @ ??</p>
  
  <p>e.g. i have a string like "This is for @codeworxx" ???</p>
  
  <p>I'm so sorry, but i have NO starting point for that :(</p>
  
  <p>Hope you can help.</p>
  
  <p>Thanks,
  Sascha</p>
  
  <hr>
  
  <p>okay thanks for the results - but i did a mistake - how to implement in eregi_replace ???</p>
  
  <pre><code>$text = eregi_replace('/\B@[^\B]+/','&lt;a href="\\1"&gt;\\1&lt;/a&gt;', $text);
  </code></pre>
  
  <p>does not work??!?</p>
  
  <p>why? do i not have to enter the same expression as pattern?</p>