淘宝彩票 打开后在谷歌浏览器按ctrl+alt+j 可以查看网页信息
$url = "http://caipiao.taobao.com/lottery/order/lottery_jczq_spf.htm";
$contents = file_get_contents($url);
if($contents)
{
$matches = null;
$eregid_str = '/<tr class="(.*)" rel="(.*)">\r\n.*';
$eregid_str.= '<td class="(.*)" num-matchindex="(.*)">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)"><span style="background-color:(.*)">(.*)<\/span><\/td>\r\n.*';
$eregid_str.= '<td class="(.*)">.*\r\n.*<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)" stoptime="(.*)" racetime=".*">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)"><em>(.*\r\n.*)<\/em> <span><a href="(.*)" target="_blank" title="(.*)">(.*\r\n.*)<\/a><\/span><\/td>\r\n.*';
$eregid_str.= '<td class="(.*)">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)"><span><a href="(.*)" target="_blank" title="(.*)">.*\r\n.*<\/a><\/span> <em>(.*\r\n.*)<\/em><\/td>\r\n.*';
$eregid_str.= '<td class="(.*)">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)"><a href="(.*)" target="_blank">(.*)<\/a> <a href="(.*)" target="_blank"><img src="(.*)" \/><\/a><\/td>\r\n.*';
$eregid_str.= '<td class="exponent">(.*)<\/td>\r\n.*';
$eregid_str.= '<td class="(.*)">\r\n.*<ul class="(.*)">\r\n.*\r\n.*<li class="(.*)"><span class="(.*)">(.*)<\/span><\/li>\r\n.*\r\n.*<li class="(.*)"><span class="(.*)">(.*)<\/span><\/li>\r\n.*\r\n.*<li class="(.*)"><span class="(.*)">(.*)<\/span><\/li>\r\n.*<\/ul>\r\n.*<\/td>\r\n.*<\/tr>/';
preg_match_all($eregid_str, $contents, $matches);
print_r($matches);
}