Hello,
I have a webpage which has the follwing source code:
<div class=prod_text>
<b>Category:</b> <a href='/Games/Xbox-360/Action_Adventure/'>Action Adventure</a><br><br><b>Publisher:</b> <a href='/stores/Ubisoft/'>Ubisoft (click here for our Ubisoft store)</a><br><br><b>Barcode (EAN) No:</b> 3307215794227<br><b>Barcode (EAN2) No:</b> 3307215794234<br><b>Barcode (EAN3) No:</b> 3307215794241<br><b>Barcode (EAN4) No:</b> 3307215801895<br><br><i class='psm'><b>Please Note:</b> Any images are used for illustrative purposes only, actual products and/or packaging may differ<br><br></i>
</div>
With the below code I want to obtain the products category which is Action Adventure - however cannot seem to get it to work.
<?php
$site=file_get_contents("http://www.gameseek.co.uk/pd/videogames2nbjhuxhsb/xbox-360-far-cry-4-limited-edition");
$price='#<b>Category:</b> (.*?)#';
preg_match_all($price,$site,$pricelist);
print_r($pricelist);
?>
Am I missing something?
Kind regards,
Jack