Android HTML Element Remove RemoveVideoTag(String html)

Here you can find the source of RemoveVideoTag(String html)


Remove Video Tag


public static String RemoveVideoTag(String html) 

Method Source Code

//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;


  1. RemoveHtmlTag(String html)
  2. RemoveImgTag(String html)
  3. removeHtml(String text)
  4. delHTMLTag(String htmlStr)