I don't speak English very well. So, if i'll make some mistake please sorry.
On the site i have a div box with some information about game:
<span class="noteline">Developer:</span>
<span class="subline">Gameloft</span>
<span class="noteline">Genre:</span>
<span class="subline">Racing/Arcade</span>
<span class="noteline">Release year:</span>
<span class="subline">2010</span>
I need to get the information between <span class="noteline">
and it's closing tag </span>
preg_match("/\<span\sclass=\"subline\"\>(.*)<\/span\>/imsU", $source, $matches);
the solution above works fine but it only gets the "subline" with text "gameloft";
but i need also sublines that have text Racing/Arcade and 2010;
Maybe something like this (that doesn't work);
for developer = preg_match("/*(\<span\sclass=\"subline\"\>){1}*(.*)*(<\/span\>){1}*/imsU", $source, $matches);
for genre = preg_match("/*(\<span\sclass=\"subline\"\>){2}*(.*)*(<\/span\>){2}*/imsU", $source, $matches);
something like this..
Anyway. Thanks for any help.