i tried \b for word boundary but wasn't happy with it, also have no idea what is valid in a twiter user name, never used twitter my self.
$comment="@username that's so cool";
preg_match('#^@([a-z]*)#i', $comment, $reply_username) ;
print_r($reply_username);
with and with out the @ depending what you need.