سلام
قبلا راجب این مورد مطلبی نوشتم + مثال
https://barnamenevis.org/showthread.p...A7%DB%8C%D9%84
اما یکم نغییر دادم
بهش HTML میدی خروجی بهت میده به صورت آرایه وار
$sResource = '<html>
<head></head>
<body>
string string string string
string string string string
<video x-webkit-airplay="allow" webkit-playsinline="" src="http://cdn.isna.ir/title/tt0050083/" title"asdas">link 1</video>
<a href="http://www.imdb.com/title/tt0333083/" title"asdas">link 2</a>
string string string string string string
<a href="http://www.imdb.com/title/tt0052283/" title"asdas">link 3</a>
<a href="http://www.imdb.com/title/tt0050083/" title"asdas">link 4</a>
string string string string
<a href="http://www.imdb.com/title/tt0050363/" title"asdas">link 5</a>
<a href="http://www.imdb.com/title/tt0025083/" title"asdas">link 6</a>
</body>
</html>';
preg_match_all("/<video (.*) src=\"(.*?)\" (.*)>(.*)<\/video>/si", $sResource, $Result);
echo '<pre>';
print_r($Result);
echo '</pre>';