php 正则替换@用户名

暂无标签
$str_r =  preg_replace('#@(.*)(\s)#Ui', '<a href="'.$v['quoteid'].'">@$1</a> ', $v['message']);