I'm in this for hours with no result so some help are welcome.
I have the following example:
Moon its far
Moon its far
Moon its far
Moon its far
Earth
Moon its far
Moon its far
Moon its far
Moon its far
Moon its far
Thanks
I need to replace all the "Moon" words and only that until the line that have "Earth"
Space its far
Space its far
Space its far
Space its far
Earth
Moon its far
Moon its far
Moon its far
Moon its far
Moon its far