/is',$content,$matches);
// if this has not worked try another variant:
if(!isset($matches[1][0]))
{
$output = preg_match_all('/
(.*)<\/div>
/is',$content,$matches);
}
$contentText = isset($matches[1][0])?$matches[1][0]:'e1';
preg_match_all('/Citations<\/a><\/td>
(\d+)<\/td>/is',$contentText,$matches);
$citations = isset($matches[1][0])?$matches[1][0]:'e2';
preg_match_all('/h-index<\/a><\/td> | (\d+)<\/td>/is',$contentText,$matches);
$hindex = isset($matches[1][0])?$matches[1][0]:'e3';
preg_match_all('/ |