title: Regex replace before and after text, keep text in place
body: <p>I have some text like</p>
  
  <pre><code>&lt;br /&gt;
  blah
  &lt;br /&gt;
  blah blah
  </code></pre>
  
  <p>Which im trying to change to:</p>
  
  <pre><code>&lt;p&gt;
  blah
  &lt;/p&gt;
  &lt;p&gt;
  blah blah
  &lt;/p&gt;
  </code></pre>
  
  <p>I have the following regex</p>
  
  <pre><code>newContent = re.sub("&lt;br /&gt;(?=(.*(&lt;br /&gt;)?\n)&lt;br /&gt;)","&lt;p&gt;",newContent)
  </code></pre>
  
  <p>But this isn't going to work how I want. I want anything before the look forward to be replaced with <code>&lt;p&gt;</code> and after the look forward to be replaced with <code>&lt;/p&gt;</code></p>
  
  <p>Is this possible?</p>