Hi, i am working some weeks over a project but i have a really big annoying problem…i really dont know what to do so any help will be appreciated!!!
I am using curl to get a html code and filter this with pregmatchall so as i can get some numbers. Some code is here:
if (preg_match_all('/><td colspan="2" valign="top" class="topBorderLight">\(.*([0-9]{3})\) .*<span class="redfonts" \/><\/td>/', $grades_data, $matches)) {
echo '<textarea rows="30" cols="100">';
print_r($matches);
echo '</textarea>';
}else{
echo "Huston we have a problem!";
}
The regular expresion is OK as i saw from lumadis.be/regex/test_regex.php Instead of i tried (,*) which is more general and its working fine…what is going on? Why the first code is not working? Any help?
thx guys