I'm trying to use a regex to extract just the longitude and latitude coordinates from this html. This is just a snippet of the full html from http://www.bricodepot.fr/troyes/store/storeDetails.jsp?storeId=1753 so I need to be able to search through the whole targets page html and match the longitude and latitude from this block:
<div class="coordinates">
<i></i>
<strong>Latitude :</strong> 46.369384765625<strong>Longitude :</strong> 2.56929779052734</div>
</div>
This is about as close as I can get at the moment:
preg_match("/<strong>Latitude :<\/strong> (.*?)/", $input_line, $output_array);
which gives:
Array ( [0] => Latitude : [1] => )
Any idea how I can get the cordinates?