I've got an ArrayList<String> named fields. I'm trying to parse the HTML in each String using the replaceAll function, but I get the feeling that I'm screwing up the regex String (I got the 2nd regex here to represent a generic html expression). Can anyone give me some tips on how to correct myself here?
for(int j = 0; j<fields.size(); j++)
{
String k = fields.get(j);
k.replaceAll("<br>", "\n");
k.replaceAll("<(\"[^\"]*\"|'[^']*'|[^'\">])*>", "");
k.replaceAll("<", "<");
k.replaceAll(">", ">");
fields.set(j, k);
}
Jsoup.parse(str).text();