Home >Backend Development >PHP Tutorial > 正则放到在线测试用具里是可以的,但是放到文件里echo数组却是不行

正则放到在线测试用具里是可以的,但是放到文件里echo数组却是不行

WBOY
WBOYOriginal
2016-06-13 12:37:40776browse

正则放到在线测试工具里是可以的,但是放到文件里echo数组却是不行
这条正则我再那些正则测试工具里面都是可以正确匹配,为什么放到preg_match_all('/(\@[a-z]+\|[\u4e00-\u9fa5]+\|[A-Z]+\|[a-z]+\|[a-z]+\|[0-9]+)/is',$a)是不行的啊?测试工具里面我选全局搜索是可以的,不选是不行的,是不是这个原因呢?preg_match_all不是就全局搜索的吗?

正则
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