in reply to how to find last word match ?

A typical algorithm to find the last entry in a data-structure that you can only read sequentially from the beginning is the following: HTH, Rata