Need to fix the following script.
<?php
$data = file_get_contents('[login to view URL]');
$regex = '/m_c_uiLordPowerLabel">Power (.+?)<%2fspan>/';
preg_match($regex,$data,$match);
var_dump($match);
echo $match[1];
?>
This script should output a number.
The code on this page that is being parsed is:
<span id="m_c_uiLordPowerLabel">Power 1071</span>
This should take an experienced programmer no more than a couple of minutes to fix.