包含单词的PHP get div

包含单词的PHP get div,php,preg-match,preg-match-all,Php,Preg Match,Preg Match All,我正在尝试获取此页面底部包含[Release]的div 我试过了,但没用,现在我很困惑,因为我找不到解决办法 谢谢。使用: 请尝试以下代码: require_once('simple_html_dom.php'); $html = file_get_html('http://mpgh.net/forum/175-crossfire-hacks-cheats/'); $ret = $html->find('div[class=inner]',0); echo $ret->innerte

我正在尝试获取此页面底部包含[Release]的div

我试过了,但没用,现在我很困惑,因为我找不到解决办法

谢谢。

使用: 请尝试以下代码:

require_once('simple_html_dom.php');
$html = file_get_html('http://mpgh.net/forum/175-crossfire-hacks-cheats/');
$ret = $html->find('div[class=inner]',0);
echo $ret->innertext;

您可能不想使用正则表达式解析html。。。
require_once('simple_html_dom.php');
$html = file_get_html('http://mpgh.net/forum/175-crossfire-hacks-cheats/');
$ret = $html->find('div[class=inner]',0);
echo $ret->innertext;