我想使用的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