I have used the following regex to get the data between the tag below (Volkswagen Eos) from a page. The page I am working on, it has different id for every item (4222620).
preg_match_all('!<span class="p_t"><strong>(.*?)</strong></span>!is', $str2b, $names);
the HTML code is below.
<div>
<span id="clsfd_title_4222620" class="p_t" id=""><strong>Volkswagen Eos</strong></span>
</div>
Unfortunately I can not get the data. Is this because I didn't use the whole tag? If so, what is a regex I can use to get the data of any written ID?
Thank you