I am scraping parts of a webpage and then inserting the results into mySQL.
The source code of a problem area is:
<span class="profilelastlogin">
31,
Kiev, Ukraine
</span>
I want to select the 3 items, Age, City, Country and then assign them each to an individual varible.
I am using this regex to select to full string but it doesn't work. I would appreciate any guidance.
$regexAgeCityCountry = '/<span class="profilelastlogin">(.*?)<\/span>/';
preg_match_all($regexAgeCityCountry, $page, $outputAgeCityCountry);