删除所有 包含attribute属性 的标签连同标签体一起删除

最后更新:2023-10-18 20:56:23 | 状态:未完成
删除所有 包含attribute属性 的标签连同标签体一起删除 
RegularUtil.removeTagWithBodyByAttribute(str,"class") 
<input type="text" class="a"/> 
<input type="text" class="a"></input> 
<input type="text" class = "a"></input> 
<input type="text" class></input> 
<input type="text" class/> 
<input type="text" a="class"></input>(不匹配)

/**
* @param src src
* @param attribute 属性
* @return String
*/
public static String removeTagWithBodyByAttribute(String src, String attribute)
最近更新 搜索 提交