How to extract text from an HTML page with java, using only loops and certain methods? [closed]

Here is very naive solution.

  1. Load a webpage and put to very looooooong String.
  2. Delete everything between <> brackets included.
  3. Here is very simple Regex to spot a tag: string.replaceAll("\(<.*?>\)", "");

Leave a Comment