Java tutorial
//package com.java2s; public class Main { public static final String RE_HTML_MARK = "(<.*?>)|(<[\\s]*?/.*?>)|(<.*?/[\\s]*?>)"; public static String cleanHtmlTag(String content) { return content.replaceAll(RE_HTML_MARK, ""); } }