} else if (preg_match('#images[^/]+/([0-9]+)/#i', $url, $matches)) {
// supports images.xxxxx.com/{number}/name...
$id = $matches[1];
} else if (preg_match('#images[^/]+/([0-9]+)/#i', $url, $matches)) {
// supports images.xxxxx.com/{number}/name...
$id = $matches[1];