求教一个PHP正则表达式

WBOY
Release: 2016-06-06 20:52:20
Original
928 people have browsed it

匹配以下组合,顺序不能变

@ + "中文英文数字下划线或横杠" + 空格

例如:

@abc_bcd

或者

@我是我

回复内容:

匹配以下组合,顺序不能变

@ + "中文英文数字下划线或横杠" + 空格

例如:

@abc_bcd

或者

@我是我

/@([\w\-]+|[^x00-xff\s]+)\s(?!\s)[^\s]*/
Copy after login

写的烂 将就用把

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!