赞
踩
preg_match('/^(?!_)(?!.*?_$)[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u',$data)
转载于:https://my.oschina.net/u/2539883/blog/740624