I am building a php data miner (scraper) I have this html line:
<label class='area'>
<font class='bg_info' onmouseover="land_convert_txt(this,3067)" onmouseout='tooltip_hide()'>
3,067 Sq. Ft.
</font>
how to setup my regex to extract the area value only?
this is my function:
function extract_regex($subject, $regex, $index = 1)
{
preg_match_all($regex, $subject, $matches);
if (count($matches[$index]))
{
if (count($matches[$index]) == 1)
{
return trim($matches[$index][0]);
}
return $matches[$index];
}
return '';
}
(this,3067)
keep changing!
Thank you in advanced