title: trying to adjust regex to remove new lines
body: <p>Hi I am looking to adjust this regex:</p>
  
  <pre><code>/\[quote\](.+?)\[\/quote\]\r\n/is
  </code></pre>
  
  <p>To basically ignore the new lines (basically I want my quote system to remove any new lines after the quote bbcode to stop there being a double space after the quoting.</p>
  
  <p>Currently i'm just doing this as the replace:</p>
  
  <pre><code>$replace = "&lt;div class=\"quote\"&gt;&lt;span class=\"strong\"&gt;Quote&lt;/span&gt;&lt;br /&gt;$1&lt;/div&gt;";
  </code></pre>
  
  <p>So it directly removes the new line, but it breaks say if the quote code is the last thing on the page and no new line after it.</p>