How can I merge every two lines into a single line?

Is there any way to do this with the Replace function?

Even better, I’d like to add a third line after every 2 lines containing the two previous lines combined. Is that possible?