Page 1 of 1

Replace all X words until reach Y word

Posted: Sun Oct 28, 2012 4:45 pm
by Maleficium
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