Home  >  Article  >  Backend Development  >  一个关于正则语法的有关问题

一个关于正则语法的有关问题

WBOY
WBOYOriginal
2016-06-13 11:43:25797browse

一个关于正则语法的问题
我想要使用正则匹配3个不同的字符 我的思路是这样
(\w)([^\1])[^\1\2]

但是[^\1] 这样的语法似乎是错误的 求教 应该怎么修改??

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