I have a page with some tables like this:

```
<html>
<ol>
<li>entry1</li>
<li>entry2</li>
<li>entry3</li>
<li>entry4</li>
</ol>   
</html>

```

I now want to count the occurences of "entry" on the page, and also to extract in which line of the table it is each placed (here 1st line).

Are there java tools to accomplish this task? For searching the count, I would use a RegEx and Matcher Pattern.
But how can I best extract the table row from that document?