title: Grunt - Replace blank lines in a file - regex
body: <p>I'm building up my first Grunt project and one of my tasks is introducing blank lines into the beginning of my output html files.  I'd like to remove them.  </p>
  
  <p>I found <a href="https://github.com/davidtucker/grunt-line-remover" rel="nofollow">grunt-line-remover</a> but it requires me to list each html file separately, and I'd rather point it to a directory.  (and I don't have time right now to figure out how to tweak the code to do that.)</p>
  
  <p>I then found <a href="https://github.com/yoniholmes/grunt-text-replace" rel="nofollow">grunt-text-replace</a> which supports file name pattern matching, but I can't figure out the Regex for finding a blank line in an html file.  </p>
  
  <p>I tried</p>
  
  <pre><code>/\n/g
  </code></pre>
  
  <p>but that replaces every new line whereas I'd like to just replace the empty lines.  Really, I just want to replace the beginning blank lines, but if it removes every blank line that's fine.</p>
  
  <p>Any help would be appreciated</p>