Re: preg_match_all() help



This is what i have been trying to work with

preg_match_all('/Overall rating[<\/a>: <\/td>\n<td>](.*?)[% <\/td>]/
i', $page, $matches, PREG_SET_ORDER);
if (empty($matches)){
echo 'The rating could not be found';
} else {
foreach ($matches as $val) {
echo "Rating: ".$val[1] . "<br /><br />";
}
}

It apparently finds a match but never returns any value. I get
Rating: but no match?! What am I doing wrong?

QB
.