【发布时间】:2012-02-08 18:34:35
【问题描述】:
我正在尝试使用 preg_match 从一些 html 中提取一些数据。我想从 Ajax 调用的下一行获取号码
new Ajax.Request('/selectdata/new/get_ids?id=687420'
所以,我使用了以下PHP
preg_match('new Ajax.Request\(\'/selectdata/new/get_ids\?id=(.+?)\'', $buffer, $matches)
我收到消息“preg_match(): Delimiter must not be alphanumeric or backslash”
我尝试了很多变化,但都没有成功。
【问题讨论】: