Hello. Can you suggest the algorithm to search surrounding test.
I need to find specific word in document and get its rectangle, this quite easy task to do.
But next challenge is to show the context where this word was…... I was trying to use regular expression for it, but the problem...the match for entire regex expression and rectangle will have boundaries...