title: Replace new line/return with space using regex
body: <p>Pretty basic question for someone who knows.</p>
  
  <p>Instead of getting from</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>"This is my text. 
  
  And here is a new line"
  </code></pre>
  
  <p>To:</p>
  
  <pre class="lang-none prettyprint-override"><code>"This is my text. And here is a new line"
  </code></pre>
  
  <p>I get:</p>
  
  <pre class="lang-none prettyprint-override"><code>"This is my text.And here is a new line.
  </code></pre>
  
  <p>Any idea why?</p>
  
  <pre class="lang-none prettyprint-override"><code>L.replaceAll("[\\\t|\\\n|\\\r]","\\\s");
  </code></pre>
  
  <p>I think I found the culprit.</p>
  
  <p>On the next line I do the following:</p>
  
  <pre class="lang-none prettyprint-override"><code>L.replaceAll( "[^a-zA-Z0-9|^!|^?|^.|^\\s]", "");
  </code></pre>
  
  <p>And this seems to be causing my issue.</p>
  
  <p>Any idea why?</p>
  
  <p>I am obviously trying to do the following: remove all non-chars, and remove all new lines.</p>