I have several of text files that contain the something like the following on many different lines:
this_is_THIS.doc
What I need to accomplish is to replace THIS with different objects for the first 5 occurrences and disregard the rest.
I would like for it to appear like the following:
this_is_TREE.doc
this_is_CAR.doc
this_is_CAT.doc
this_is_DONKEY.doc
this_is_ROCK.doc
I will have to do this many times in the future with the words changing so I feel a regex that I can alter in the future would help me a lot. I have searched but found nothing useful. Thanks for any help, you folks are great here.