preg_match('/\/(?P<name>\w+\.(?:png|jpg|gif|bmp|mp4))$/i', $url,$matches);

相关文章: