Remove spaces between paragraphs with regex : <pre><code>some code here

some code here
</code></pre>

<p>to</p>

<pre><code>some code here
some code here
</code></pre>

<p>What is the regex to remove the spaces between each paragraph? I've been searching for a while but I couldn't find one. Some of the results would be:</p>

<pre><code>some code heresome code here
</code></pre>

<p>but it isn't the one i'm trying to find</p>
