eu fiz um loop com o while onde eu verifico linha a linha , se ha uma das substrings a seguir ":
’ ou “table” se houver eu saio do while…
o problema e que quando chega na linha:
“conditions intractable to adequate trials of conventional treatment”
ele sai do while…
o loop esta assim
while (!(linha.matches (".*"+"<h1>"+".*") | linha.matches (".*"+"<H1>"+".*") | linha.matches (".*"+"table"+".*") | linha.matches (".*"+"TABLE"+".*")))
{
saida=saida.trim ();
saida=saida.concat (linha +" ");
linha=br.readLine ();
}
alguem pode me ajudar?