i want to preg_match "8t5562g" of the second sentence where title has a word similar to "Music"
</div><div class="content"><h3 class="title "><a href="9JGl134" class="ellipsis" data-sessionlink="vij0JFIDY2Jj" title="Drama_Live - Drama Live " rel="prefetch" dir="ltr">#Drama_Live - Drama Live</a></h3>
</div><div class="content"><h3 class="title "><a href="8t5562g" class="ellipsis" data-sessionlink="vdshds4452Jj" title="Music_Live - Music Live " rel="prefetch" dir="ltr">#Music_Live - Music Live</a></h3>
Tried this but didn't worked
$likes = preg_match("'herf=\"(.*?)\"'si", $data, $matches);
$like = "($matches[1])";
print $like;
but it gives me href of first sentence not what i want. Any Idea ?