2
可能重复:
Warning: preg_match() [function.preg-match]: Unknown modifier ‘(’未知的修饰 - 管
我有这样的正则表达式,在this rerular Expression tester正常工作:
$validLinksRegex = '(^http://.+?\.a.com)|(^http://b.com)';
这是其次是
if (preg_match($validLinksRegex, $link)){...
,其产生错误
的preg_match()[function.preg匹配]:未知的修饰 '|'
我在这做错了什么?