I have a chunk of HTML I need to pull a word from. The string realClean contains the HTML.
<div class="smallfont">
<small>
Originally Posted By: chingy51o
</small>
</div>
I need to pull chingy51o out of it. I’ve been having issues with this for a while, so I have widened my search to just pull out any line containing Originally Posted By: in hopes that once I’m able to isolate that, I can go in an extract the more specific data from it, but I can even get that line extracted.
String authorString = "Originally Posted By: .*?";
if (realClean.contains(authorString)) {
Log.d("AUTHORS!", authorString + "\n");
}
but that’s not returning any values.
Create a
Scannerobject and search each line.