I am trying to create a regex expression that starts with a certain word and ignores any other same proceeding words.
For example, if my string starts with the word "dog" and ends with "fish", how do I ignore any proceeding "dog" words and only match the last one?
dog cat fish
dog dog cat fish <- ignore first word "dog" and match second "dog" word.
dog dog dog cat fish <- ignore first and second "dog" words and match third "dog" word.