I want the string FC Barcelona v BM Huesc , FC Ferrari v BM ameriF and C semari v AM buhari from below code.
$mat = '<font color="white">FC Barcelona v BM Huesca
<font color="white">FC Ferrari v BM ameri
<font color="white">FC semari v AM buhari
';
I tried below code , but it does not seems to work.Any help will be appreciated.Thanks
preg_match_all('/<font color="white">(.*?)/',$mat,$mats);
var_dump($mats);
Edit: My real time example is below
<?php
$game = file_get_contents("http://www.firstrow1.eu/bet365/index.html");
preg_match_all('/<\/td><td><font color="white">(.*)/m',$game,$mats);
var_dump($mats);
?>