in reply to Re: regexp find last word
in thread regexp find last word

That puts 'the' in front the first word that appears twice. Which doesn't need to be 'fox', nor does it has anything to do with the last fox before the forest. It would fail on:
"fox goes into forest"