PHP has functions for parsing URLs and query strings, you don't need to use a regular expression.
$parts = parse_url("http://www.mysite.com/imgres?imgurl=http://www.mysite.com/images/blue-diamond-rings.jpg");
$query_string = $parts['query'];
parse_str($query_string, $output);
echo $output['imgurl'];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…