有人可以向我解釋這種模式的含義。preg_match字符串
preg_match(/'^(d{1,2}([a-z]+))(?:s*)S (?=200[0-9])/','21st March 2006','$matches);
所以糾正我,如果我錯了:
^ = beginning of the line
d{1,2} = digit with minimum 1 and maximum 2 digits
([a-z]+) = one or more letters from a-z
(?:s*)S = no idea...
(?= = no idea...
200[0-9] = a number, starting with 200 and ending with a number (0-9)
有人能完成這個名單?
我們不是缺少d,S,S之前反斜槓等等? –
我明白了你的觀點,但沒有。這本書並沒有提到反斜槓...... – Michiel
然後不要相信這本書;) –