Home >Backend Development >PHP Tutorial >求教一个PHP正则表达式

求教一个PHP正则表达式

WBOY
WBOYOriginal
2016-06-06 20:52:20959browse

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

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

例如:

@abc_bcd

或者

@我是我

回复内容:

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

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

例如:

@abc_bcd

或者

@我是我

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

写的烂 将就用把

Statement:
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