title: Match the start of each new line with JavaScript regex
body: <p>I have a string with possible <code>\n</code> in them. Think of:</p>
  
  <pre><code>&amp;nbsp;Foo1
  &amp;nbsp; Foo2
  Foo3&amp;nbsp; Foo4.
  </code></pre>
  
  <p>I want to replace <code>&amp;nbsp;</code>'s at the start of each line, but the above is one string. <code>^nbsp;</code> only matches the first <code>&amp;nbsp;</code> before <code>Foo1</code>. I want to do at the start of any newline, look for <code>&amp;nbsp;</code>. Any ideas?</p>
  
  <p>So, I want a regex that'll match the first two <code>&amp;nbsp;</code>'s above, but not the 3rd.</p>