I am taking an array from a webpage and I am putting all its html code in a string (k). Now I want to split that string so that I will only have the info in a table (each line in a seperate cell). I want to split it (using </tr> as delimiter) but keep the </tr> and not loose it. How can I do that?
String x = k.split("</tr>"); //This line looses the </tr>.
I would also appreciate any other suggestions.