Posted By

devnull69 on 08/15/11


Tagged

regex regexp blank remove line


Versions (?)

Remove blank lines


 / Published in: JavaScript
 

  1. var output = input.replace(/^\s*$[\n\r]{1,}/gm, '');

Report this snippet  

You need to login to post a comment.