http://stackoverflow.com/questions/1361741/get-characters-after-last-in-url
$url = "http://www.vimeo.com/1234567"; if ( preg_match( "/\d+$/", $url, $matches ) ) { print $matches[0]; }