How can I create a function similar to Google Buzz or Facebook, where the user types an '@' symbol followed by a username which is then turned into a link?
Example:
Input is: "Hello, @example_user!"
And the output is: "Hello, Example User!"
(http://example.site/profile.php?u=example_user)
This, I'm sure, would be simple to do.
(I'm new to the preg_replace function, and relatively new to PHP in general.)
Thanks, ~James