I need to replace ereg_replace with preg_replace but there is something in the syntax that I obviously don't understand as I'm unable to make it work. I've read all that I can find but to no avail. Any help would be appreciated. The code I need to convert is as follows:
$qstr = ereg_replace("&page=[0-9]+","",$_SERVER['QUERY_STRING']);