How do you find and replace a newline?

I don’t think this is possible in Obsidian at the moment, as find and replace does not recognize regex.

Regex functionality for find and replace within obsidian

You might try copying and pasting a newline character into the find text field.