if (preg_match("~p=([0-9]+)~", $rightlink, $num)) {
if (preg_match("~[^a-z]p=([0-9]+)~", $rightlink, $num)) {