作者o500521 (poet)
看板RegExp
标题[问题] 抓取的内容不符 新手发问
时间Mon Nov 21 12:38:54 2011
使用php 内建的模拟perl
我的目标要抓 取一个网站的html
------------------以下是html------------------
</a> 2011 Sep 21. [Epub ahead of print]</div><h1>Studies on the electrolytes
and microelements in Wistar rat following multiple exposures to
acetamiprid.</h1><div class="auths"><a
href="/pubmed?term=%22Mondal%20S%22%5BAuthor%5D">Mondal S</a>, <a
href="/pubmed?term=%22Ghosh%20RC%22%5BAuthor%5D">Ghosh RC</a>, <a
href="/pubmed?term=%22Mukhopadhyaya%20SK%22%5BAuthor%5D">Mukhopadhyaya
SK</a>.</div><div class="aff"><h3 class="label">Source</h3><p>Department of
Veterinary Pathology, College of Veterinary Science and Animal Husbandry,
<span class="highlight" style="background-color:">Durg</span>, Chhattisgarh,
India.</p></div><div class="abstr"><h3>Abstract</h3><p>A subacute toxicity
study of acetamiprid was undertaken in 72 female Wistar rats randomly divided
into four groups (18 each). Acetamiprid was administered orally at the dose
rate of 0, 25, 100 and 200 mg/kg of body weight to rats of groups I, II, III
and IV, respectively. Group I served as control. Calcium, phosphorous,
sodium, potassium, chloride, zinc, copper, iron and cobalt concentrations in
plasma were significant increased in acetamiprid administered groups. However, no alteration was
observed in plasma manganese concentration in acetamiprid-treated rats. The
repeated oral toxicity study on acetamiprid in present investigation
suggested that it has toxic potential and it is a high-risk
insecticide.</p></div><div class="aux"><div class="resc"><dl
class="rprtid"><dt>PMID:</dt> <dd>21937532</dd> <dd> [PubMed - as supplied by
publisher] </dd><dd> </dd></dl></div><div class="links"></div></div>
我的语法
preg_match_all("|<[/h3><p]>(.*)</[p></div>]+>|U", $P_string, $P_dd) ;
抓取资料为
Department of Veterinary Pathology, College of Veterinary Science and Animal
Husbandry, Durg, Chhattisgarh, India.
A subacute toxicity study of acetamiprid was undertaken in 72 female Wistar
rats randomly divided into four groups (18 each). Acetamiprid was
administered orally at the dose rate of 0, 25, 100 and 200 mg/kg of body
weight to rats of groups I, II, III and IV, respectively. Group I served as
control. Calcium, phosphorous, sodium, potassium, chloride, zinc, copper,
iron and cobalt concentrations in plasma were significantly (p ecticide.
期望资料为
Studies on the electrolytes and microelements in Wistar rat following
multiple exposures to acetamiprid.
A subacute toxicity study of acetamiprid was undertaken in 72 female Wistar
rats randomly divided into four groups (18 each). Acetamiprid was
administered orally at the dose rate of 0, 25, 100 and 200 mg/kg of body
weight to rats of groups I, II, III and IV, respectively. Group I served as
control. Calcium, phosphorous, sodium, potassium, chloride, zinc, copper,
iron and cobalt concentrations in plasma were significantly increased in acetamiprid administered groups. However, no alteration was
observed in plasma manganese concentration in acetamiprid-treated rats. The
repeated oral toxicity study on acetamiprid in present investigation
suggested that it has toxic potential and it is a high-risk insecticide.
不知道大大们会怎麽处理这问题谢谢各位愿意阅览的人
一直不太懂正规表示法的精随
谢谢~大家
/*
听说注明使用的语言、环境
*
问题有可能较容易被解决...
*/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.114.100.144
※ 编辑: o500521 来自: 140.114.100.144 (11/21 12:56)