Here you can find the source of RemoveVideoTag(String html)
public static String RemoveVideoTag(String html)
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { static final Pattern patternVideo = Pattern .compile("<object(.+?)>(.*?)<param name=\"src\" value=\"(.+?)\"(.+?)>(.+?)</object>"); public static String RemoveVideoTag(String html) { Matcher m = patternVideo.matcher(html); while (m.find()) { html = m.replaceAll(""); }//from www. j av a 2 s . co m return html; } }