Eclipse中如何利用正则表达式选中空行 ^\s*\n就可以实现。如何想删除空行,使用替换功能,利用空来替换就可以了 http://blog.163.com/peigen_peigen/blog/static/27047802009038443738/