去掉html中的标签

//去掉html中的图片
String regEx_image = "(<img.*src\\s*=\\s*(.*?)[^>]*?>)";
Pattern p_script = Pattern.compile(regEx_image, Pattern.CASE_INSENSITIVE);
Matcher m_script = p_script.matcher(text);
text = m_script.replaceAll("");

posted @ 2019-08-16 13:37  大山里的程序猿  阅读(189)  评论(0编辑  收藏  举报