Replace all X words until reach Y word

Tool for Search and Replace across multiple files.
Post Reply
User avatar
Maleficium

Replace all X words until reach Y word

Post 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
Post Reply