0
哪些錯誤有:請告訴我錯在正則表達式
$pattern = '/9[0-5[7-9]]{1}[\\d]{10})|([0-2]\\d{11}/';
$subject = '971093342689';
試圖在PHP
preg_match($pattern, $subject)
檢查收到一個錯誤:
preg_match(): Compilation failed: unmatched parentheses at offset 22
[This](http://regex101.com/)是一個偉大的網站測試正則表達式,也許它會一起來。 – Alternatex 2014-10-08 13:29:39
你先有一個)然後一個(。你的()[括號]不正確 – 2014-10-08 13:32:20