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匹配]:未知的修飾 '|'
我在這做錯了什麼?