I want to parse an HTML file and store the bold text (inside <b> tags). One solution is to read the file line by line and split or use RegEx. This means that I should store the entire page in a String variable? If I don't save it in a variable then I have no guarantee that the start of the tag and the end of it are on the same line.
What solution do you suggest?