重複の可能性:
PHPでHTMLを解析および処理する方法は?
こんにちは、私はWebページをスクレイプしました
<div class="col blue">
<img src="/en/media/Dentalscreenresized.jpg" />
<h4>This is line i want to scrape</h4>
<p class="date">12 Sep
<span class="year">2012</span></p>
<p>13 people were diagnosed with oral cancer after last year’s Mouth Cancer Awareness Day. Ring 021-4901169 to arrange for a free screening on the 19th September.</p>
<p class="readmore"><a href="/en/news/abcd.html">Read More</a></p>
<p class="rightreadmore"><a href="http://www.xyz.ie/en/news/">See all News </a></p>
</div>
<h4>
今、私はのタグを表示したいと思います。私はclass="col blue"
使用するためにオンラインで見ましたpreg_match_all()
私は正規表現に精通していません...助けてください