M-x replace-stringC-q C-jRETRET
The trick is to quote the C-j with C-q, but otherwise replacing newlines is like replacing anything else.
M-x replace-stringC-q C-jRETRETThe trick is to quote the C-j with C-q, but otherwise replacing newlines is like replacing anything else.