我想使用的preg_match從一些HTML提取一些數據。我想從以下行的阿賈克斯的號碼與的preg_match():分隔符不能是字母,數字或反斜線
new Ajax.Request('/selectdata/new/get_ids?id=687420'
所以,我用下面的PHP
preg_match('new Ajax.Request\(\'/selectdata/new/get_ids\?id=(.+?)\'', $buffer, $matches)
我得到的消息「的preg_match():分隔符不能是字母數字或反斜槓「
我已經嘗試了很多變體,但沒有成功。
http://php.net/manual/en/regexp.reference.delimiters.php簡單明瞭。 – 2012-02-08 18:36:45