Codice PHP:
// Da testare
$pattern '#@([a-z0-9]*)#si';
preg_match_all($pattern$string$matches);
print_r($matches[1]);