I cant figure out preg_replace at all, it just looks chinese to me, anyway I just need to remove \"&page-X\" from a string if its there.
&page-X
X
$outputstring = preg_replace('/&page-\d+/', "", $inputstring);
preg_replace()