[問題] 抓取的內容不符 新手發問

看板RegExp (正規表示式 Regular Expression)作者 (poet)時間13年前 (2011/11/21 12:38), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
使用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)
文章代碼(AID): #1EoTNWCI (RegExp)
文章代碼(AID): #1EoTNWCI (RegExp)