There is an html file that contains <HR size=6 color=black>
<html>
....
<HR size=6 color=black>
....
<HR size=6 color=black>
....
</html>
I want to get rid of <HR size=6 color=black>
. I tried
htmlText = htmlText.replaceAll("<(?i)hr size="+"\""+"6"+"\""+" color="+"\""+
"black"+"\""+">", "<h1>splitLineHere</h1>");
System.out.println(htmlText);
But this does not change anything