![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
CODE: $start_pos = strpos($content,"<table width=100%><tr><td>");
$end_pos = strpos($content,"</td></tr><tr><td><p><div align=right>");
for ($i=$start_pos+strlen("<table width=100%><tr><td>"); $i<$end_pos; $i++)
{
$con = $con . $content{$i};
} |
上面代码中的:
CODE: $start_pos = strpos($content,"<table width=100%><tr><td>"); |
这段有两种可能:
CODE: $start_pos = strpos($content,"<table width=100%><tr><td>"); |
CODE: $start_pos = strpos($content," <table width=625><tr><td>"); |
请问如何用正则表达把两种可能接合起来 说白点就是: 采集的时候 有些页面以:
起始
有些页面以:
|

