/**
* 移除网页中注释掉的代码
*
* @param str
* @return
*/
public static String removedisablecode(String str) {
Pattern pattern = Pattern.compile("<!--[\\w\\W\r\\n]*?-->");
Matcher matcher = pattern.matcher(str);
str = matcher.replaceAll("");
return str;
}

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-11-26
  • 2022-01-07
  • 2022-12-23
  • 2021-08-15
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
相关资源
相似解决方案