title: Regular expression to remove space in the beginning of each line?
body: <p>I want to remove space in the beggining of each line. </p>
  
  <p>I have data in each line with a set of spaces in the beginning  so data appears in the middle, I want to remove spaces in the beginning of each line.</p>
  
  <pre><code>tmp = tmp.replace(/(&lt;([^&gt;]+)&gt;)/g,"")
  </code></pre>
  
  <p>How can I add the <code>^\s</code> condition into that <code>replace()</code>?</p>