Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static String getThumbUrl(String videoUrl) { videoUrl = videoUrl.replace("moogaloop.swf?clip_id=", ""); int start = videoUrl.indexOf("vimeo.com/") + 10; int end = videoUrl.indexOf("&", start) != -1 ? videoUrl.indexOf("&", start) : videoUrl.length(); return "http://www.abewy.com/apps/klyph/services/vimeo_thumbnail.php?id=" + videoUrl.substring(start, end); } }