在notepad++工具中,用正则表达式去掉空行:

匹配命令:^\s*\n

替换之前:

 匹配命令:

 运行结果:

在EditPlus中,可用正则表达式 ^[ \t]*\n  ,注意\t前有空格符

更多推荐

正则表达式去掉空行(notepad++)