Find and replace line breaks with page breaks

Is there any way to use find and replace (with regex enabled) to find every line break (\n) and replace it with a page break (the equivalent of CTRL+Enter)?
Thanks,

The extension AltSearch offers this: RegEx enabled search for \n and replace with \M\p.
Explanation: PageBreak before or after are treated as an Attribute of the respective Paragraph. Therefore you can insert a PageBreak only if the respective Paragraph is already present or gets created at the same time.

That was exactly what I needed. Thanks!