Hi all,
I have a html page where I need to find a specific number. This number however changes over time. What I know is that this number is always next to a known string.
So, I have for example ‘moment 328’ or, afew days later ‘moment 1265’.
How can I easily get this string from that page? i tried this, but my array is always empty.
$data = file_get_contents('http://www.example.com');
$regex = '/moment (.+?)/';
preg_match($regex,$data,$match);
print_r($match);
All help much appreciated,
Michel