It's mostly an android development, we could work on it within some days starting from now but it could be a proof of concept and not a full usable class.
You should develop on your own:
- cycle through pages ("n" page)
- extract text from pages and put it in an array of "n" elements
- apply your regular expression to each array element
- find the first an last char extracted by regex from page "m"
- inspect for the whole substring in the "m" page and highlight it on the page
- when moving to a different page you should apply step of above point using the proper substring
Different approach:
- cycle through pages ("n" page)
- extract text from actual page
- if regex is false continue cycling
- if regex is good, find the first an last char extracted by regex from page "m"
- inspect for the whole substring in the "m" page and highlight it on the page
- when moving to a different page you should cycle through pages starting from actual one and looking for a new positive result
As you could guess the whole process couldn't be fast.
The first approach will be slower at start and quicker when array result is ready.
The first approach could be adopted to provide a full result list to user.
The second approach will be quicker while starting up but slower when moving.